Thanks, but what if I don't know the content of the string. $str = $_REQUEST['op']; // op si a mathematical operator like +, -, *, / print(2.$str.3); // I want to calculate the result of 2 "operator" 3 I'm not sure that my question is clear enough. But thanks again. Mart. [!--quoteo(post=362232:date=Apr 6 2006, 10:27 AM:name=G F D)--][div class=\'quotetop\']QUOTE(G F D @ Apr 6 2006, 10:27 AM) [snapback]362232[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code] <?PHP $str = "2+3"; echo "$str = "; echo 2+3; ?> [/code] Something like that you mean? The output would look like this: [/quote]