RE: [PHP] converting int to char

From: Date: Sat, 19 May 2001 19:50:59 +0000
Subject: RE: [PHP] converting int to char
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53552@lists.php.net to get a copy of this message
Hey, take a look at: http://www.php.net/manual/en/function.chr.php :) Kees > -----Original Message----- > From: Christian Dechery [mailto:lemming@vento.com.br] > Sent: Saturday, May 19, 2001 9:47 PM > To: php-general@lists.php.net > Subject: [PHP] converting int to char > > > how do I convert and integer value to its ASCII correspondent? > > in C I would go something like: > > int i = 90; > char c; > > c = i + '0'; // now c would be 'Z' > > in PHP I'm simply clueless since there's no (char) type... > ____________________________ > . Christian Dechery (lemming) > . http://www.tanamesa.com.br > . Gaita-L Owner / Web Developer > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#53552) next »