I would like to do something like that:
array(
if($condition = "xyz") { array('value' => $a, 'text' => $a), }
array('value' => $b, 'text' => $b),
...
);
but it would not allow me to have that if function inside that array function? What I am doing wrong? Is there a way to make it possible? Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire