dimanche 4 septembre 2016

PHP array compare and if statement

$x1 = 'xxx'; 
$y1 = 'yyy'; 
$a=['xxx', 'xxx', 'xxx']; 
$b=['yyy' => 1, 'yyy' => 2, 'yyy' => 3]; ;

if($x1== $a){ if($y1== $b['yyy']){ $cat= $b['1']; } }

I need help with this logic.

Aucun commentaire:

Enregistrer un commentaire