I'm new in php. I want to evaluate math expression using EvalMath class. I create new EvalMath using this code
require_once "evalmath.class.php";
$m = new EvalMath;
$result = $m->evaluate("2+2");
echo ($result);
instead of I get the result, I get the class content in my browser.
Did I miss something in my code?