¡@

Home 

php Programming Glossary: expecting_op

How to evaluate formula passed as string in PHP?

http://stackoverflow.com/questions/1015242/how-to-evaluate-formula-passed-as-string-in-php

' ' 0 ' ' 0 ' ' 1 ' ' 1 '_' 1 '^' 2 operator precedence expecting_op false we use this in syntax checking the expression and determining.. ^ a z w d . d . d ' substr expr index match if op ' ' and expecting_op is it a negation instead of a minus stack push '_' put a negation.. in the input expression elseif in_array op ops or ex and expecting_op are we putting an operator on the stack if ex are we expecting..