I have an array with values like these:
[oranges] => Array
(
[cost] => 0.56
[quantity] => 6
)
[pears] => Array
(
[cost] => 0.34
[quantity] => 2
)
I want to perform a search, get the search values using $_REQUEST (I've got to use $_REQUEST), then update the original array to display only the values the match the search. How can I do that?
PS: I need to be able to search the array based on item (oranges, pears, etc) and/or price and/or qty.
With my search form, the $_REQUEST is a variable with the in the following format:
Array
(
[item] => apple
[qty] => 2
[price] =>
)
Any suggestions?