dimanche 27 septembre 2020

php if else condition in variable as string [duplicate]

I have if else condition as string like $cond = '40 < 50 and 60 > 70'; how can I execute it in PHP with out exec. if ($cond) not working as it just pass if variable exists or not. Thank you

Aucun commentaire:

Enregistrer un commentaire