Mega Code Archive

 
Categories / Php / Functions
 

If your low parameter (parameter one) is higher than your high parameter (parameter two), you get an array counting down,

<?     $questions = range(100, 0, 10);     // gives 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0 ?>