[PHP-DOC] cvs: phpdoc /en/functions strings.xml From: Andrei Zmievski (andrei <email protected>)
Date: 07/11/00

andrei Tue Jul 11 13:19:01 2000 EDT

  Modified files:
    /phpdoc/en/functions strings.xml
  Log:
  Docs for substr_count().
  
  
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.26 phpdoc/en/functions/strings.xml:1.27
--- phpdoc/en/functions/strings.xml:1.26 Sat Jul 8 13:50:51 2000
+++ phpdoc/en/functions/strings.xml Tue Jul 11 13:19:01 2000
@@ -2567,6 +2567,37 @@
    </refsect1>
   </refentry>
 
+ <refentry id="function.substr-count">
+ <refnamediv>
+ <refname>substr_count</refname>
+ <refpurpose>Count the number of substring occurrences</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>substr_count</function></funcdef>
+ <paramdef>string <parameter>haystrack</parameter></paramdef>
+ <paramdef>string <parameter>needle</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>substr_count</function> returns the number of times the
+ <parameter>needle</parameter> substring occurs in the
+ <parameter>haystack</parameter> string.
+ </para>
+
+ <para>
+ <example>
+ <title><function>substr_count</function> example</title>
+ <programlisting>
+print substr_count("This is a test", "is"); // prints out 2
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ </refentry>
+
   <refentry id="function.substr-replace">
    <refnamediv>
     <refname>substr_replace</refname>