aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index b86f9c6..0c87108 100644
--- a/README.md
+++ b/README.md
@@ -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: