( [0] => Array ( [name] => Souq [title] => Upto 70% Off [category] => Accessories ) [1] => Array ( [name] => Beardo. [title] => 65% OFF [category] => Personal Care ) [2] => Array ( [name] => Fnp [title] => Rs.100 off [category] => Gifts & Flowers ) [3] => Array ( [name] => Dreamz [title] => Rs.50 off [category] => Accessories ) )
$filterArr = array_filter($products, function ($var) { return ($var['category'] == 'Accessories'); });
foreach($filterArr as $v){ echo $v['name'] . '<br/>'; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)