Hi everyone, I want to convert my array to another type of array, plz help me. i m using this
$row = mysql_fetch_array($result, MYSQL_ASSOC);
and conclusion
Array ( [user_id] => 250 [name] => a [age] => sfsf [pic_path] => )
but I want the result in this format
Array ( [0] => Array ( [user_id] => 250 [name] => a [age] => sfsf [pic_path] => ) [1] => Array ( [user_id] => 251 [name] => b [age] => sfsfs [pic_path] => ) )
so what function should I get an array in this format
sql php
umar
source share