Function __global->strtok
Definitions
sources_custom/phpstub.php
- Tokenise string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $subject | string | No | No | required parameter | N/A | N/A | String to tokenise. EXCEPT if $delimiters=null, then this has actual delimiters. |
| $delimiters | ?string | No | No | Null | N/A | N/A | Delimiters (null: continue with previous tokenisation) |
Returns
- Next token (false: could not return a token, no more tokens to return)
- Type: ~string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Tokenise string.
*
* @param string $subject String to tokenise. EXCEPT if $delimiters=null, then this has actual delimiters.
* @param ?string $delimiters Delimiters (null: continue with previous tokenisation)
* @return ~string Next token (false: could not return a token, no more tokens to return)
*/
function strtok(string $subject, ?string $delimiters = null)
* Tokenise string.
*
* @param string $subject String to tokenise. EXCEPT if $delimiters=null, then this has actual delimiters.
* @param ?string $delimiters Delimiters (null: continue with previous tokenisation)
* @return ~string Next token (false: could not return a token, no more tokens to return)
*/
function strtok(string $subject, ?string $delimiters = null)

