mercredi 24 janvier 2018

searching An Array In Laravel

I been getting two arrays and merging them and then looking for a certain value under 'name' but can't seem to get it working

     $temp = [
   ['id' => 3, 'name' => 'Taylor'],
   ['id' => 3, 'name' => 'Abigail'],
];

 $temp1 = [
    ['id' => 3, 'name' => 'Taylor'],
     ['id' => 3, 'name' => 'Taylor'],
];

$ggg = array_merge($temp,$temp1);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire