Re: ASCII

From: Date: Fri, 05 Mar 2004 16:22:46 +0000
Subject: Re: ASCII
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179584@lists.php.net to get a copy of this message
csko wrote:
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

« previous php.general (#179584) next »