Given this example, how would I return the result of the equation rather than the equation itself as a string?
$operator = \'+\'; foreach($resultSet as $item
Quick answer is eval(). However, in this precise example I would just hard-code the possible operations:
orderField] + 1; break; } echo $result; } ?>