note 15155 deleted from language.types.string by goba

From: Date: Mon, 04 Nov 2002 10:58:06 +0000
Subject: note 15155 deleted from language.types.string by goba
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38947@lists.php.net to get a copy of this message
Converts from C and its descendents may attempt to do type casting on a character: $myChar = 'A'; $myCharAscii = (integer)$myChar; This doesn't work, because PHP can only cast the numerical digits in a string to an int. Instead, use the functions string chr (int ascii) int ord (string string) to convert to and from single characters.

« previous php.notes (#38947) next »