Is there a function to convert a ASCII char to decimal or binary?
See php functions - ord & chr - decbin, bindec, dechex, etc
or simply traditionnal C way (printf family) to format and convert at the same time (ex get '0A' and not 'a' for char with decimal code 10)
$char= '\n'; echo sprintf("%02X", $char);
Christophe
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php