[PHP] How to convert a string into a mathematical expression?

2001-07-13 Thread Christodoulou Demetris
Hi list. I have string variables that contain mathematical expressions. These strings are submitted through forms. For example if a user inserts the following- 1+cos(0.3)*x into a text field with name expression in an HTML form then what i get on the server is the string variable $expression

[PHP] How to convert a string into a mathematical expression?

2001-07-13 Thread Christodoulou Demetris
Hi list. I have string variables that contain mathematical expressions. These strings are submitted through forms. For example if a user inserts the following- 1+cos(0.3)*x into a text field with name expression in an HTML form then what i get on the server is the string variable $expression