| count_chars() | ใช้นับจำนวนตัวอักษรแต่ละตัวใน string |
|---|
function:count_chars ( string, mode );
return type:array
content:ใช้นับจำนวนตัวอักษรแต่ละตัวใน string
example:$arr_word = count_chars ( "bamboolabcode" ); print_r ( $arr_word );
comment:ถ้า mode = 0 จะมีคีย์คือรหัส ascii ตั้งแต่ 0 ถึง 255 ( default ) ถ้า mode = 1 จะมีคีย์คือรหัส ascii เฉพาะค่าที่มีความถี่ ( คือเฉพาะตัวอักษรที่มี ) ถ้า mode = 2 จะมีคีย์คือรหัส ascii เฉพาะค่าที่ไม่มีความถี่ ( คือเฉพาะตัวอักษรที่ไม่มี )