note 29008 rejected from control-structures.for by tix

From: Date: Thu, 30 Jan 2003 08:33:04 +0000
Subject: note 29008 rejected from control-structures.for by tix
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43122@lists.php.net to get a copy of this message
<? for($i = "a"; $i < "z"; $i++) { echo $i . "\n"; } ?> will print a through y (nothing special) <? for($i = "a"; $i <= "z"; $i++) { echo $i . "\n"; } ?> will print a through yz (weird) <? for($i = "z"; $i < "a"; --$i) { echo $i . "\n"; } ?> prints nothing (very weird!)

« previous php.notes (#43122) next »