lundi 27 août 2018

Foreach Array only receive last key

this is a first time i get this but. I have array with 5 element, but when i use Foreach, it's only receive last element.

echo count($datas['datas']);
        [![var_dump($datas\['datas'\]);
        $test = 0;
        foreach ($datas\['datas'\] as $k => $v);
        {
            echo $k;
            $test++;
        }
        dd($test);]

enter image description here



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MRkgV9
via IFTTT

Aucun commentaire:

Enregistrer un commentaire