★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.count-chars.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to 文字列
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
文字列
* AddCSlashes
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* count_chars
* crc32
* crypt
* echo
* explode
* flush
* get_html_translation_table
* get_meta_tags
* hebrev
* hebrevc
* htmlentities
* htmlspecialchars
* implode
* join
* levenshtein
* ltrim
* md5
* Metaphone
* nl2br
* ob_start
* ob_get_contents
* ob_end_flush
* ob_end_clean
* ob_implicit_flush
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* QuoteMeta
* rtrim
* sscanf
* setlocale
* similar_text
* soundex
* sprintf
* strcasecmp
* strchr
* strcmp
* strcspn
* strip_tags
* StripCSlashes
* StripSlashes
* stristr
* strlen
* str_pad
* strpos
* strrchr
* str_repeat
* strrev
* strrpos
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* substr_count
* substr_replace
* trim
* ucfirst
* ucwords
Manual: count_chars
View the source code for this pageSearch the site



Previous page
 convert_cyr_string
 Updated
Mon, 14 Aug 2000
crc32 
Next page


count_chars

(PHP4 >= 4.0b4)

count_chars --  文字列で使用されている文字に関する情報を返す

説明

mixed count_chars (string string [, mode])

string において各バイト値(0..255)が存在する数 を数え、様々な手法で返します。 オプションの引数 mode のデフォルトは0です。 mode により以下の値のどれかを返します。

  • 0 - 各バイト値をキー、各バイトの出現回数を値とする配列。

  • 1 - 0と同じですが、各バイト値の出現回数がゼロより大きいものの 一覧となります。

  • 2 - 0と同じですが、各バイト値の出現回数がゼロであるものの 一覧となります。

  • 3 - 使用されている全てのバイト値を有する文字列が返されます。

  • 4 - 使用されていない全てのバイト値を有する文字列が返されます。

注意: この関数は、PHP 4.0で追加されました。


 About Notes


Previous page
 convert_cyr_string
 Updated
Mon, 14 Aug 2000
crc32 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.