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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire