S
smartbadge
Hi All
I am having trouble using the eval statement.
I want eval to execute a Boolean string like the following example:
$str = " (!1 && 0) || (0 && 1)";
eval($str);
However this is not giving me consistent results. Sometimes it works
and returns the correct answer, other times it returns nothing. Any
help on this would be appreciated. Maybe ye have another way of
dynamically running Boolean strings??
Smartbadge
I am having trouble using the eval statement.
I want eval to execute a Boolean string like the following example:
$str = " (!1 && 0) || (0 && 1)";
eval($str);
However this is not giving me consistent results. Sometimes it works
and returns the correct answer, other times it returns nothing. Any
help on this would be appreciated. Maybe ye have another way of
dynamically running Boolean strings??
Smartbadge