Materials for 09.01.2016 » Developer.Team - Developers Paradise!

Bestcode bcParserPHP 1.6

Bestcode bcParserPHP 1.6
Bestcode bcParserPHP 1.6 | 31 kB


mathparser.php implements a MathParser class that parses and evaluates math formulas given as strings at runtime. PHP already has an eval() function for similar purposes. However eval() has security problems where a user supplied expression can cause havoc when executed on a web server or elsewhere. bcParserPHP works around this problem by parsing and evaluating the mathematical expression without using eval() function. bcParserPHP is tested with PHP version 5.2.9 and 5.6.8. The library utilizes newer PHP constructs such as classes, constructors, exceptions.
Read more