显示文本框

count_chars()

« count | crc32 »
<?php
$mixed 
count_chars (
    
// string $string
    
?  // [int $mode = 0]
);
?>
结果
$mixed = [
  
32 => 4,
  
46 => 1,
  
70 => 1,
  
84 => 2,
  
97 => 1,
  
100 => 1,
  
101 => 1,
  
110 => 2,
  
111 => 2,
  
115 => 1,
  
119 => 1,
]
示例
#1 count_chars  ("Two Ts and one F.",
 
1)
另请参阅
strpos, substr_count