Be aware this is only for ASCII characters. You cannot, for instance, retrieve a UTF-8 character with this function.
PHP is still trying to become truly multi-byte character compliant. In fact, PHP 6 is supposed to ship with the default encoding set to UTF-8 (at least, to the last of my knowledge).