mardi 9 juin 2015

Convert string to variable in PHP

I have a variable $allrule = '(1 == 2) && (2 == 2)'; when i check if($allrule), it returns true because $allrule is treated as string. So i want to convert $allrule as condition of if statement. how can we do it.

Aucun commentaire:

Enregistrer un commentaire