php - Unique Value from multidimensional array -
i'm fetching data database in multidimensional array this
$par = []; $var = db::table('welcome_call_done')->where('state','like', '%'. $states .'%')->where('city','like', '%'. $citys .'%')->get(); foreach($var $val) { $prod = db::table('welcome_call_product')->where(['assoc_id' => $val->assoc_id])->get(); array_push($par, $prod); } $unique = array_map("unserialize", array_unique(array_map("serialize", $par)));
i want display singles values after execution display multiple data. please tell solution sort problem.
Comments
Post a Comment