Quote:
Originally Posted by xXziroXx
PHP Code:
temp.txt = "I love f'ing rock'n'roll!";
for (temp.foo: temp.txt.tokenize()) temp.txt2 = (temp.txt2 == NULL ? temp.foo : temp.txt2 @ temp.foo);
player.chat = temp.txt2;
|
PHP Code:
temp.txt2 = (temp.txt2 == NULL ? temp.foo : temp.txt2 @ temp.foo);
Is the same thing as just:
PHP Code:
temp.txt2 @= temp.foo;
You should always initialize the variable prior to the for loop so you don't accidentally use the variable beforehand and not even realize it.