You are here : phpstringchr

chr() - string

Returns a one-character string containing the character specified
   by ascii.
Parameters :
  • ascii - The extended ASCII code. Values outside the valid range (0..255) will be bitwise and'ed with 255, which is equivalent to the following algorithm: while ($ascii < 0) {    $ascii += 256;}$ascii %= 256;

  • Syntax

    string chr
        ( int $ascii
       )


    Example

    while ($ascii < 0) {    $ascii += 256;}$ascii %= 256;


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference