简单教程
提交运行
代码编辑器:
<?php $string = "Hello world. Beautiful day today."; $token = strtok($string, " "); while ($token != false) { echo "$token<br>"; $token = strtok(" "); }
运行结果: