I do believe that ...
$string = "-25+74+14-8";
eval('$var='.$string.';');
echo $var;
... is what you're after.
But be careful with eval(). If these strings are coming form user input, you must sanitize the string before passing it to eval(), otherwise nasty people will be able nasty things.
Paul