I have string like this,
$condition = "if($test == '1')";
I want to convert it to a conditional expression without using eval()
.
Is it possible?
Take a look at $functionName()
or call_user_func($functionName)
More clarification.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With