案例:php案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
3
4
<!DOCTYPE html>
5
<html>
6
<body>
7
8
<?php
9
$string = "Hello world. Beautiful day today.";
10
$token = strtok($string, " ");
11
12
while ($token !== false)
13
{
14
echo "$token<br>";
15
$token = strtok(" ");
16
}
17
?>
18
  
19
</body>
20
</html>
21
22
23