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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -