note 108589 deleted from language.operators.increment by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 16:41:22 +0000 |
| Subject: | note 108589 deleted from language.operators.increment by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187578@lists.php.net to get a copy of this message | ||
Note Submitter: user at NOSPAM dot example dot com
----
FYI, the manual's example I refer to is "Using arithemetic to increment character
variables."
So, to iterate through the alphabet once:
<?php
$i = 'A';
for ($n=0; $n<26; $n++)
{
echo '<a href="Dictionary.php?alph=' . $i . '">' . $i .
'</a>';
{
?>