i have a multi array data, which when printed using print_r, it's displayed like this:
Code:
Code: Select all
Array ( [recipes0] => Array ( [recipeID] => TM-ce57 [count] => 2 ) [recipes1] => Array ( [recipeID] => TM-52e2 [count] => 3 ) )Code:
Code: Select all
Array ( [recipes1] => Array ( [recipeID] => TM-52e2 [count] => 3 ) [recipes0] => Array ( [recipeID] => TM-ce57 [count] => 2 ) )$sortedData[0] = "recipes1";
$sortedData[1] = "recipes0";
how may I do this? any help is greatly greatly appreciated, since I am stucked with this problem since yesterday
thanks