So I was doing some exercises and ran across this code (which produces "1. Item A", "2. Item B", etc ):
echo "\n<ol>";
for ($x='A'; $x<'G'; $x++){
echo "<li>Item $x</li>\n";
}
echo "\n</ol>";
Curious, I attempted to do the reverse (which produces an infinite loop of Zs):
echo "\n<ol>";
for ($x = 'Z'; $x > 'M'; $x--){
echo "<li>Item $x</li>\n";
}
echo "\n</ol>";
What have I missed here?