note 89032 rejected from function.ctype-digit by danbrown

From: Date: Wed, 18 Feb 2009 20:29:43 +0000
Subject: note 89032 rejected from function.ctype-digit by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150823@lists.php.net to get a copy of this message
Note Submitter: jorge+php at rhst dot net ---- This function seems to include a hidden "feature", if an integer is sent, and is less that 256, it is treated as an ASCII value. This will confuse the hell out of you. Try this: <? for ($a = 0; $a < 255; $a++) if (ctype_digit($a)) echo $a . ' ' . chr($a) . "\n"; ?>

« previous php.notes (#150823) next »