i'm sure this has been asked before, but I can't find anything on the search so maybe not!
I have a string such as
$stringname = "455/54+345*43";
And I want to extract all the groups of numbers and operators into seperate variables so the output would be:
$num1 = 455
$num2 = /
$num3 = 54
$num4 = +
etc etc
and once I have them into this form I will want to perform the math functions it has in the string so the sum is calculated.
I'm thinking I need to use Substr, and then explode to an array?
Any pointers you can give me?
cheers