jeudi 7 février 2019

PHP: many if conditions compare

I have to check if "id" is around 15 different values....

if($value->id==1 or $value->id==2 or $value->id==3 or $value->id==4 etc etc....)

what is the better/shorter way to do that....

Aucun commentaire:

Enregistrer un commentaire