Return a specific character

chr

(PHP 4, PHP 5)

chrReturn a specific character

Opis

string chr ( int $ascii )

Returns a one-character string containing the character specified by ascii .

This function complements ord().

Parametry

ascii

The ascii code.

Zwracane wartości

Returns the specified character.

Rejestr zmian

Wersja Opis
6.0.0 This function now uses codepoint as input.

Przykłady

Example #1 chr() example

<?php
$str 
"The string ends in escape: ";
$str .= chr(27); /* add an escape character at the end of $str */

/* Often this is more useful */

$str sprintf("The string ends in escape: %c"27);
?>

Zobacz teĹĽ:


smycz i reklama | projektowanie stron www | suzan giżyńska | ferie białystok | gazetka billa | ból głowy | Hel
Design by flankerds.com