I have fairly simple 2 dimensional array. i'm trying to write a function that finds if a value exists in one of the inner arrays. that is not so hard. problem is that i need to then delete the entire inner array once found. that's what i'm having trouble with. seems impossible to do using foreach loops.
anyway, here is the array. thanks!
$booksInCart = Array (Array ('bookId' => 344, 'quantity' => 1),
Array ('bookId' => 54, 'quantity' => 1),
Array ('bookId' => 172, 'quantity' => 2),
Array ('bookId' => 3, 'quantity' => 1)
);