[PHP] Mathematical expression calculation function?

2004-04-22 Thread Enfors Christer
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())

Re: [PHP] Mathematical expression calculation function?

2004-04-22 Thread John W. Holmes
From: Enfors Christer [EMAIL PROTECTED] 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 $str =