I cant seem to get eval to return a boolean value for '(4 > 5)'
Is this possible? If not how might I get this to work (without writing a parser)
I have tried this:
$v = eval('return (10 > 5)');
var_dump($v);
// Result = bool(false)
UPDATE
Thanks to @Pekka - I added a semicolon to the above code and it works.