I have a associative array:
$a = array(
array("id" => 1, "q" => 2),
array("id" => 2, "q" => 99),
array("id" => 5, "q" => 20));
if i use array_pop(), it will remove the last element in the array. Is there a way to delete element 1 where id=="2" so my array count would be 2 instead of 3. I looked in the PHP manual and can't find any reference to doing this?
Thanks,
Allen.