d
Amit DhamuSoftware Engineer
 

PHP Range

1 minute read 00000 views
foreach(range(1, 5) as $number) {
    echo $number . ', ';
}

// Returns
// 1, 2, 3, 4, 5,