|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-07 08:53 UTC] adobernig at netway dot at
for ($char="A";$char<="Z";$char++)
{
echo "$char - ";
}
the last char displayed by this script
is not "Z" but "YZ"
with ever other letter it works as it should
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
I just hit this aswell. I personally dislike the behaviour. However, rewrite your loop like this to get the expected behaviour: for ($i=ord('A'); $i<=ord('Z'); $i++) echo chr($i)."<br>";