title: PHP Calculate Math Function by Variable
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4216858/php-calculate-a-math-function-fx-in-a-string">PHP: Calculate a math function f(x) in a string</a>  </p>
  </blockquote>
  
  
  
  <p>please anyone help me to solve a math function,
  for example i want to solve 3x+2y+4z
  the value of the variable should be declared in php,
  like $x=4, $y=2, $z=1
  i know that there is <a href="https://stackoverflow.com/questions/4216858/php-calculate-a-math-function-fx-in-a-string">PHP: Calculate a math function f(x) in a string</a> ,
  but is there any simple method ?</p>