public function isOperand($str) { if ($str == "|" || $str == "&" || $str == "~" || $str == "(" || $str == ")") { return false; } return true; }