I have table like this:
random_num
----------
0
15
12
...
and I have query SELECT random_num FROM table_name;.
I want to fetch array in way like:
$row[0] = 0;
$row[1] = 15;
$row[2] = 12;
etc..
But PHP lets me only to fetch it in this way:
$row[0]['random_num'] = 0;
etc..
How to fetch it as I want?
You can use array_map