I
I
Ilya Antipenko2015-04-22 16:20:52
PHP
Ilya Antipenko, 2015-04-22 16:20:52

A module for calculating mathematical expressions?

Greetings.
Recommend a PHP module with which you can calculate mathematical expressions. Data is obtained from an untrusted source (user input)
Need support for internal variables. For example:

$tmp1 = 5*5+((2+7)^2)/5
$tmp2 = 3*8*$tmp1
$tmp3 = sqrt($tmp1 + $tmp2)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
brevis, 2015-04-22
@brevis

Thousands of them

E
egor_nullptr, 2015-04-22
@egor_nullptr

php.net/eval

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question