Looked all search results but didnt quite found what I was looking for and my noob php brain can't figure the php manual out so I'll just ask.
I have an array which have another array inside and Id like to searh a value from that array
My array:
print_r($product_rows);
gives:
Array ( [0] => Array ( [row_color] => sectiontableentry1 [product_name] => Lattaaa pew
[product_attributes] => [product_sku] => xxxx [product_price] => 45.00 € )
Now I have modifer:
$db_sku = xxxx
Now I'd like to search if that xxxx value is in that array
How that if sentence should be written?
Atm my code looks like this but its not working
if (in_array(array($product_sku, $db_sku ),$product_rows) ) { echo found; } else { echo not_found; }
Any hints?