Class EvalMath.
More...
Class EvalMath.
Definition at line 97 of file evalmath.class.php.
◆ e()
◆ evaluate()
EvalMath::evaluate |
( |
|
$expr | ) |
|
◆ funcs()
◆ nfx()
Convert infix to postfix notation.
- Parameters
-
- Returns
- boolean|array Output
Definition at line 235 of file evalmath.class.php.
◆ pfx()
EvalMath::pfx |
( |
|
$tokens, |
|
|
|
$vars = array() |
|
) |
| |
|
private |
Evaluate postfix notation.
- Parameters
-
array | $tokens | Expression |
array | $vars | Array |
- Returns
- string Output
Definition at line 381 of file evalmath.class.php.
◆ trigger()
EvalMath::trigger |
( |
|
$code, |
|
|
|
$msg, |
|
|
|
$info = null |
|
) |
| |
trigger an error, but nicely, if need be
- Parameters
-
string | $code | Code |
string | $msg | Msg |
string | null | $info | String |
- Returns
- boolean False
Definition at line 468 of file evalmath.class.php.
Referenced by evaluate().
◆ vars()
The documentation for this class was generated from the following file: