PHP Maths Equation Function -
What I'm actually seeing is a math equation function that represents a string and takes the equation and returns For example, calculates the answer as
For example ("(4 * 5) + 6) * 2) / 8"
Output: 6.5
print calc ("((4 * 5) + 6) * 2) / 8");
Is there a class or a function that is creating some angels or doing what I do it myself
thanks
$ nums = "((4 * 5) + 6) * 2) / 8"; Eval ("\ $ nums = $ nums;"); $ X resonate;
Comments
Post a Comment