I have 3 variables like this: $first = 2; $second = 5; $operation = \'*\';
how can I programaticly assign the solution to this math problem to the $answer variable? I ha
eval() should work perfectly fine for something like this. Remember that eval() returns NULL though, unless you tell it to return something.