note 114685 deleted from function.eval by googleguy
| From: | googleguy@php.net | Date: | Fri, 24 Feb 2017 21:11:44 +0000 |
| Subject: | note 114685 deleted from function.eval by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208825@lists.php.net to get a copy of this message | ||
Note Submitter: Daniele Mams
----
This is another function that return true if $formula is a syntactically valid Math function, false
otherwise.
NDR.
1) It not allows %, pi|Ï.
2) It allows this Math functions:
abs, atan, ceil, cot, cos, exp, gmp_fact, intval, sin, sqrt, tan, log, log10, rand, round.
I write it on pastebin.com because php.net not allow me to post long code.
enjoy it! :-)
http://pastebin.com/EgwV7QdK