Mega Code Archive

 
Categories / Php / Functions
 

Use range( ) to create arrays of characters, like this

<?     $questions = range("a", "z", 1);     // gives a, b, c, d, ..., x, y, z     $questions = range("z", "a", 2);     // gives z, x, v, t, ..., f, d, b ?>