Mathematical expression calculation function?

From: Date: Thu, 22 Apr 2004 12:32:21 +0000
Subject: Mathematical expression calculation function?
Groups: php.general 
Request: Send a blank email to php-general+get-184211@lists.php.net to get a copy of this message
Hi. I need a function that takes a mathematical expression in the form of a string, and calculates the result. PHP itself doesn't seem to provide one. I need something which can handle strings like: 10*73.2+3-(4*358.2874)/352 ... and so on. If it handles functions (like cos(), pow(), exp()) too, then that would be great. I'd appreciate any help. Thanks in advance.

« previous php.general (#184211) next »