Re: Mathmatical formula
| From: | Mike Smith | Date: | Tue, 20 Dec 2005 20:44:17 +0000 |
| Subject: | Re: Mathmatical formula | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227746@lists.php.net to get a copy of this message | ||
> Try;
>
> $foo = preg_replace($find,$replace,$partFormula);
> return $foo
Unfortunately no. I also tried making the formula look like this:
<?php (36.00000*58.00000)/144 ?>
and returning it with:
eval('?>' . $a . '<?php ');
Mike