Quote:
Originally Posted by cbk1994
splits a string at a delimiter (a space if you don't specify one).
|
It delimits by space and reads it like an array when you don't specify a parameter. Here's a case where I explicitly had to specify a space as the delimiter.
I.e.
PHP Code:
function onCreated() {
temp.s = "blah, blah, blah";
for (temp.a: temp.s.tokenize()) echo(temp.a);
echo(" ");
for (temp.a: temp.s.tokenize(" ")) echo(temp.a);
}
PHP Code:
The script of NPC JerretNPC has been updated by fowlplay4
blah
blah
blah
blah,
blah,
blah