Full Range ?



Hi,

Just to save a bit of code - is there an easier way without typing out
all the letters/numbers to do this?

foreach (range("A","Z") as $v){$variables[] = $v;}
foreach (range("a","z") as $v){$variables[] = $v;}
foreach (range("1","9") as $v){$variables[] = $v;}

Effectively making one array with all letters & numbers

Thanks

A
.



Relevant Pages

  • Re: Full Range ?
    ... out all the letters/numbers to do this? ... Highly inefficient, but no typing of characters: ...
    (alt.php)
  • Re: Full Range ?
    ... all the letters/numbers to do this? ... Highly inefficient, but no typing of characters: ...
    (alt.php)