There is a format string 2a*3b+100 and 2 numbers a and b .
It is necessary to break it into elements and perform the actions that are specified in the line I wanted to do it through miltiexplode(array("+","-","*","/"), $string) , but in this case the signs are lost. Probably, you need to sort through the elements, but I do not see a good way. Yes, and I experience difficulties with strings.