RE: [PHP] ($a = 'a'; $a <= 'z'; $a++) invalid?

From: Date: Thu, 14 Dec 2000 19:08:18 +0000
Subject: RE: [PHP] ($a = 'a'; $a <= 'z'; $a++) invalid?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30340@lists.php.net to get a copy of this message
> for ($a = 'a'; $a <= 'z'; $a++) { > $foo .= $a; > } > > it returns 675 values, 'a' to 'yz' vs. 26. Why not do this? for($i=97; $i<=122; $i++) { $foo .= chr($i); } Layne Weathers Ifworld, Inc. layne@ifworld.com

« previous php.general (#30340) next »