What is the fastest way to populate an array with 1-100 digits in PHP? I want to avoid doing something like this:
$numbers = '';
for($var i = 0; i <= 100; $i++) {
$numbers = $i . ',';
}
$numberArray = $numbers.split(',');
Seems long and tedious, is there a faster way?
source
share