UK[ˈtəʊkən] US[ˈtoʊkən]
##n. Symbol; mark; tokenadj. Symbolic; as a guarantee for something; as a signvt. Omen: omen or symbol, omen
php strtok() function syntax
Function:Split the string one by one
Syntax: strtok(string,split)
Parameters:
Parameter | Description |
string | Required. Specifies the string to be split. |
split | Required. Specifies one or more delimiting characters. |
Description: strtok() function splits a string into smaller strings (markers).
php strtok() function example
<?php $string = "Hello world. I'm study in php.cn!"; $token = strtok($string, "."); while ($token !== false) { echo "$token<br>"; $token = strtok("."); } ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
Hello world I'm study in php cn!