array function to set n number of value php code example
Example 1: foreach range php
<?php
foreach (range(0, 12) as $number) {
echo $number;
}
?>
Example 2: php array
$array = ['cheese', 'ham', 'potato'];
var_dump($array);
<?php
foreach (range(0, 12) as $number) {
echo $number;
}
?>
$array = ['cheese', 'ham', 'potato'];
var_dump($array);