String chr () for php string functions
Posted In:
php string functions
.
By design
Formula for (PHP 3, PHP 4, PHP 5)
string chr ( int ascii )
Parameter
int ascii = Required. An ASCII value
Description
chr() returns the character associated with the supplied ASCII code. If the integer provided is not a valid ASCII code, the function returns nothing.
Note that the integer can be specified in octal or hex values, as well as decimal. Octal values are denoted by a leading 0(07,012,...), while hex values are denoted by a leading0x(0xFF,0x9D,...).
Example
The output of the code :
0 Responses to String chr () for php string functions
Something to say?