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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -