I have stored conditions in database string format. ex: ((25>1)||(25<1))
How can I pass this string to if
condition statement. I tried, but it's not working. I have used eval()
function, but it's not working.
$con=eval("return ((25>1)||(25<1))");
if($con){
echo "success";
}
else{
echo "failed";
}