range(0,20,2) : Array range « Data Structure « PHP






range(0,20,2)

<?php
   $even = range(0,20,2);
   // $even = array(0,2,4,6,8,10,12,14,16,18,20);
   print_r($die);
?>

           
       








Related examples in the same category

1.range: A--F
2.range: Create an array containing a range of elements