diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2020-05-15 22:04:57 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2020-05-15 22:04:57 +0300 |
commit | 11ea95cb2125e329a84b30f05e25a79e29abf353 (patch) | |
tree | ecfbcc7e3033ef1f11c25baca1c9d32f496d8ee1 | |
parent | b74742641f9c5dfb6077745c3c175bca6234d8e0 (diff) |
Fix readme
-rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -23,7 +23,7 @@ composer require nxp/math-executor ## Sample usage: ```php -use NXP\MathExecutor;require 'vendor/autoload.php'; +use NXP\MathExecutor; $executor = new MathExecutor(); @@ -84,7 +84,9 @@ Default operators: `+ - * / ^` Add custom operator to executor: ```php -use NXP\Classes\Operator;$executor->addOperator(new Operator( +use NXP\Classes\Operator; + +$executor->addOperator(new Operator( '%', // Operator sign false, // Is right associated operator 170, // Operator priority |