From 719aed0d1ccc0ab70a4af2ca4b6dd78a240517ad Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Mon, 20 Oct 2003 11:54:57 +0000 Subject: [PATCH] adding example (user note) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@142762 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/count-chars.xml | 43 ++++++++++++++++++++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/count-chars.xml b/reference/strings/functions/count-chars.xml index b7184c7075..0962e16149 100644 --- a/reference/strings/functions/count-chars.xml +++ b/reference/strings/functions/count-chars.xml @@ -1,5 +1,5 @@ - + @@ -18,7 +18,7 @@ Counts the number of occurrences of every byte-value (0..255) in string and returns it in various ways. - The optional parameter Mode default to + The optional parameter mode default to 0. Depending on mode count_chars returns one of the following: @@ -52,6 +52,45 @@ + + + <function>count_chars</function> example + + +]]> + + + This will output : + + + + + + See also strpos and substr_count.