diff options
author | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-01-11 02:15:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-11 02:15:26 +0300 |
commit | bf6204aea73441f222d5b9ebb828f9da9d6894ad (patch) | |
tree | c22a09adffdcc16c52e9503ad364e45dad0a2eba /README.md | |
parent | 790827ff45639b8a18485186ab0a31eb4263f119 (diff) |
Update README.md
Some small fixes
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -133,7 +133,7 @@ $executor->setVars([ echo $executor->execute("$var1 + $var2"); ``` ## Division By Zero Support: -By default, the result of division by zero is zero and no error is generated. You have the option to thow a \NXP\Exception\DivisionByZeroException by calling setDivisionByZeroException. +By default, the result of division by zero is zero and no error is generated. You have the option to throw a `\NXP\Exception\DivisionByZeroException` by calling `setDivisionByZeroException`. ```php $executor->setDivisionByZeroException(); @@ -145,7 +145,7 @@ try { ``` ## Unary Minus Operator: -Negative numbers are supported via the unary minus operator, but need to have a space before the minus sign. `-1+ -3` is legal, while '`-1+-3` will produce an error due to the way the parser works. Positive numbers are not explicitly supported as unsigned numbers are assumed positive. +Negative numbers are supported via the unary minus operator, but need to have a space before the minus sign. `-1+ -3` is legal, while `-1+-3` will produce an error due to the way the parser works. Positive numbers are not explicitly supported as unsigned numbers are assumed positive. ## String Support: Expressions can contain double or single quoted strings that are evaluated the same way as PHP evalutes strings as numbers. You can also pass strings to functions. |