public function __construct($exp = null) { if (isset($exp) && $exp !== null) { $this->strInFix = $exp; $this->arrTokens = $this->arrPostFix = null; } // init tokenizer here, else tokens become undefined on addVar Toolset_Tokenizer::init(); }