php , I want to build array from 12 values each value has max number of 2048

Try this:

$num_array=[0,1,2,3,4,5,6,7,8,9,10,11];

for($i=12;$i<=2048;$i++)
{
    array_push($num_array,$i);
}

Browse More Popular Posts

Leave a Comment