Go to: Synopsis. Return value. MEL examples.
int tokenizeList( string $list, string $tokenizedList[] )
None
Variable Name | Variable Type | Description |
---|---|---|
$list | string | The string of values to tokenize. Separated by either whitespace or commas. |
$tokenizedList | string[] | The items in $list, after tokenization |
string $list = "1 6 7, 54"; string $tokenizedList[]; tokenizeList($list, $tokenizedList); // Result : 1 // print $tokenizedList; // 1 // 6 // 7 // 54