quote:Original post by FxMazter
Well... I have looked into the PHP syntax and it is like this:
$variable = "Billy"
$$variable = 21
Result of printing $Billy:
21
Now the reason behind this is nothing special... but just out of curiosity.
Thank you for the posts anyway
Well i have no idea about PHP and i have absolutley no idea why there would ever be reason to assign a variable to a string, what youre suggesting is very unstable in C++, but you could use atoi() to cast the string to an int, or itoa() to do it the other way around.
An ASCII tetris clone... | AsciiRis
[edited by - Tiffany Smith on August 15, 2003 5:25:15 PM]