案例:php案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
3
4
<!DOCTYPE html>
5
<html>
6
<body>
7
8
<p>参数 "mode 3" 会返回包含所有用过的不同字符的字符串。在本例中,在 "Hello World!" 中使用的字符是:</p>
9
10
<?php
11
$str = "Hello World!";
12
echo count_chars($str,3);
13
?>  
14
15
</body>
16
</html>
17
18
19
20