How to convert a string into a mathematical expression?

From: Date: Fri, 13 Jul 2001 09:17:24 +0000
Subject: How to convert a string into a mathematical expression?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59943@lists.php.net to get a copy of this message
Hi list. I have strings that are mathematical expressions. These strings are submitted through forms. For example a string might be $a="1+cos(0.3)*x". Is there a way to convert this string to a mathematical expression that can be calculated? Thanks in advance. DX.

« previous php.dev (#59943) next »