I am creating a multidimensional array (from sql query using mysql_fetch_assoc),
I get the following array, see attached array_file. Now from this array I have to find if a particular field exists in the array or not, particulary i need to find if the value for element [M] exists or not ([M] => 757).
I have the following code, but always get a negative value even if the record exists, just need to find if the record exists with [M] => 757 or not,
some elements of the array might have null values.
$search_value = "757";
foreach ($map as $key => $row)
foreach($row as $cell)
if (trim($cell) == trim($search_value))
I am stuck at this point, appreciate any help.