Nico Vrouwe wrote:

> $i<ord('Z') seems easier to me than $i<ord('A')+26 :)


Easier:

<?php
for ($a = $i = 'A'; $i != 'Z'; $a .= ++$i) ;
?>

now $a contains 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to