dimanche 22 mars 2020

accusative array value in if statement php

I have the weirdest blackout. but why i am getting 'no' as output and not 'yes'

 $test =array ('title' => 'user', 'name'=>'dave','id'=>'4');

        if($test['title']  == 'user'){
          echo 'yes';
        }else{
          echo 'no';
        }

Aucun commentaire:

Enregistrer un commentaire