I create an array like this:
$table = Array();
array_push($table, Array('item' => 1, 'storage' = 1, 'qtd' = 0) );
array_push($table, Array('item' => 1, 'storage' = 2, 'qtd' = 4) );
array_push($table, Array('item' => 2, 'storage' = 1, 'qtd' = 78) );
array_push($table, Array('item' => 3, 'storage' = 2, 'qtd' = 10) );
I need to search if i have some item in some storage.. For example in a sql query i do like "... where item = 1 and storage = 2"
How can i search that way in the array, to get the "qtd" value?
Thanks!