strtok - 语法
strtok(string,split)
它是一个标签化字符串
| Sr.No | 参数 & Description |
|---|---|
| 1 |
string 它指定要拆分的字符串 |
| 2 |
split 它指定一个或多个拆分字符 |
strtok - 返回值
它返回一个字符串标签
strtok - 示例
<?php $input="tutorials point simple easy learning."; $token=strtok($input, " "); while ($token !== false){ echo "$token<br>"; $token=strtok(" "); } ?>
这将产生以下输出-
tutorials point simple easy learning.