Copied!
Cloneable Instantiable
Methods
public __construct ( array $functions , array $operators )
 

Calculator constructor.

public calculate ( array $tokens , array $variables , ? callable $onVarNotFound = NULL )
 

Calculate array of tokens in reverse polish notation

  • return mixed
  • throws IncorrectExpressionException
  • throws UnknownVariableException
Properties
private $functions
private $operators
© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration