range: Create an array containing a range of elements : Array range « Data Structure « PHP






range: Create an array containing a range of elements


<?php
   $die = range(0,6);
   // Same as specifying $die = array(0,1,2,3,4,5,6)
   print_r($die);
?>
           
       








Related examples in the same category

1.range: A--F
2.range(0,20,2)