note 114685 added to function.eval

From: Date: Fri, 21 Mar 2014 23:15:02 +0000
Subject: note 114685 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-199010@lists.php.net to get a copy of this message
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 ---- Server IP: 72.52.91.14 Probable Submitter: 151.76.236.204 ---- Manual Page -- http://php.net/manual/en/function.eval.php Edit -- https://master.php.net/note/edit/114685 Del: integrated -- https://master.php.net/note/delete/114685/integrated Del: useless -- https://master.php.net/note/delete/114685/useless Del: bad code -- https://master.php.net/note/delete/114685/bad+code Del: spam -- https://master.php.net/note/delete/114685/spam Del: non-english -- https://master.php.net/note/delete/114685/non-english Del: in docs -- https://master.php.net/note/delete/114685/in+docs Del: other reasons-- https://master.php.net/note/delete/114685 Reject -- https://master.php.net/note/reject/114685 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199010) next »