String to Math Formulas
| From: | Churk Y. Leung | Date: | Wed, 26 May 2004 05:34:06 +0000 |
| Subject: | String to Math Formulas | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969361001@lists.php.net to get a copy of this message | ||
I was searching through PHP.net and wasnt able to find something that will convert a string which is
a math formula back into a formula, here is what i mean:
$formula = $_POST['formula'];
// $formula == 3*$counter2+3*$counter1
$counter1 = 1;
$counter2 = 2;
$temp = $formula;
// $temp == "3*$counter2+3*$counter1" not 9 which is what i want, Can someone please give
me a clue as to where i can find help on this