
Jon Lennryd - 2014-07-03 13:46:16 -
In reply to message 2 from Jon Lennryd
Oh, I forgot to mention I have prepared evalmath by giving y a value, like 'y=12' for example.
evalmath.e('y=12');
$res = evalmath.e('2*(y+y*3)');
Gives me the warning:
Undefined offset: -1 [APP\Vendor\evalmath.php, line 384]
But $res contains the correct answer.