diff options
author | Bruce Wells <bruce.wells@simparel.com> | 2019-01-11 04:29:20 +0300 |
---|---|---|
committer | Bruce Wells <bruce.wells@simparel.com> | 2019-01-11 04:32:22 +0300 |
commit | e03df64281a1c33639b13c9f490d4452c1a1784d (patch) | |
tree | 449ad548f128c09503ef62df570a8d700ca9145d /README.md | |
parent | 18b12aeeff34c8ac9a350165ae36f08f4138dc9c (diff) |
Fixed function argument ordering and default parameter type for addFunction
Updated unit tests
Fixed docs
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,11 +41,11 @@ Default functions: Add custom function to executor: ```php -$executor->addFunction('abs', function($arg) { - return abs($arg); -}, 1); +$executor->addFunction('abs', function($arg) {return abs($arg);}); ``` +Default parameters are not currently supported. + ## Operators: Default operators: `+ - * / ^` @@ -113,7 +113,7 @@ Default variables: ``` $pi = 3.14159265359 -$e = 2.71828182846 +$e = 2.71828182846 ``` You can add your own variables to executor: |