($a = 'a'; $a <= 'z'; $a++) invalid?

From: Date: Thu, 14 Dec 2000 18:40:40 +0000
Subject: ($a = 'a'; $a <= 'z'; $a++) invalid?
Groups: php.general 
Request: Send a blank email to php-general+get-30337@lists.php.net to get a copy of this message
Hi. Why won't this work as expected? Brief explanation desired. for ($a = 'a'; $a <= 'z'; $a++) { $foo .= $a; } it returns 675 values, 'a' to 'yz' vs. 26. A more descriptive version of this question can be found here : http://marc.theaimsgroup.com/?l=php-general&m=97675398006231&w=2 BTW, ('a' < 'z') evaluates to true. regards, philip --.sig of moment. Disclaimers : My code may not be perfectly efficient but it gets the job done. "Learn through experience."

« previous php.general (#30337) next »