I want to make this if statement Dynamic
$Name = "Test";
$Age = "19";
if($Name == 'Test' And $Age > 18){
echo "Success";
}
I want to use it like this
$Name = "Test";
$Age = "19";
$Statement = "$Name == 'Test' And $Age > 18";
if($Statement){
echo "Success";
}
Please help me about it. Thanks
Aucun commentaire:
Enregistrer un commentaire