Quote:
Originally Posted by iDigzy
Ahh, thanks for the reply anyways  .
Would anyone be able to explain tokenizing to me/link me to anything on it please?
|
obj.tokenize([delimiters]) - splits the string into an array wherever the delimiters occur
Example:
Player chats: "This is an example"
PHP Code:
player.chat.tokenize(" "); //uses spaces as separator
Can access tokens like this:
tokenscount (will yield 4)
tokens[0] will reference the first token (the word "this").
Similarly,
tokens[2] will reference the word "an".