Usage

Syntax: string.tokenize([delimeter]);

Returns array.

Explanation

Returns an array of strings created by slicing up the string at the spaces, or whatever delimiter you specify.

Example

function onCreated()
{
   temp.test = "Hello World, How are you?";
  temp.tokens = temp.test.tokenize();
  echo(temp.tokens);

  temp.test2 = "Hello World, How are you?";
  temp.tokens = temp.test2.tokenize(',');
  echo(temp.tokens);
}

... Will echo " Hello,World,How,are,you? " and " 'Hello World', 'How are you?' "

Categories

CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki