hehe, that is what I was thinking.
So you have 2x=4 which means x=2? How do you have that in your code? Is it a string?
$variable = "2x=4"?
I do a substr on it, pull out the 2 and the 4 by getting the index of the X and the =. Once that is done, divide 4 variable by 2 variable.
__________________
Lop
|