View Single Post
  #5 (permalink)  
Old 09-25-2006, 08:21 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Credits: 0
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

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
Reply With Quote

Sponsored Links