I'm working on a boolean expression configured by the application user. This expression comes from the database as soon as it's a string, I need to make PHP understand it so I have both true and false.
Example:
Expressao_string = ”(1 and ( 0 or 1) )”;
As this string value comes from a base, I need to make this string valid for PHP.