php how to loop z to a?
<p>i was read this document <a href="http://php.net/manual/en/language.operators.increment.php" rel="nofollow">document</a></p>

<p>they can loop from A to Z with this code.</p>

<pre><code>$string = 'A';
for ( $i = 0; $i&lt;=1; $i++ ) {
    echo $string;
    ++$string;
}
</code></pre>

<p>and result can go from A to B or more than this up to $i</p>

<p><strong>but!!</strong></p>

<p>i can't do loop from Z to A with this code</p>

<pre><code>--$string;
</code></pre>

<p>Does anyone know how to loop from Z to A?</p>

<p>ps1. i can't use range(); because 'Z' is in variable.</p>

<p>ps2. this is excel column that can go from A to Z, AA, AB or more then this.. so, i can't use variable in range or number to character.</p>
