jan             Thu Oct 17 18:48:38 2002 EDT

  Added files:                 
    /phpdoc-de/reference/strings/functions      str-word-count.xml 
    /phpdoc/en/reference/strings/functions      str-word-count.xml 

  Removed files:               
    /phpdoc-de/reference/strings/functions      word-count.xml 
    /phpdoc/en/reference/strings/functions      word-count.xml 
  Log:
   - reflect function renaming
  
  

Index: phpdoc-de/reference/strings/functions/str-word-count.xml
+++ phpdoc-de/reference/strings/functions/str-word-count.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
  <refentry id="function.str-word-count">
   <refnamediv>
    <refname>str_word_count</refname>
    <refpurpose>
     Gibt Informationen &uuml;ber Worte in einem String zur&uuml;ck
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beschreibung</title>
     <methodsynopsis>
      <type>mixed</type><methodname>str_word_count</methodname>
      <methodparam><type>string</type><parameter>string</parameter></methodparam>
      <methodparam 
choice="opt"><type>int</type><parameter>format</parameter></methodparam>
     </methodsynopsis>
    <para>
     Z&auml;hlt die Worte in <parameter>string</parameter>. 
     Wenn der optionale Parameter <parameter>format</parameter> nicht angegeben wird, 
wird
     ein Integer mit der Anzahl der Worte zur&uuml;ckgegeben. Andernfalls wird ein 
Array
     zur&uuml;ckgegeben, dessen Inhalt von <parameter>format</parameter> abh&auml;ngt.
     <parameter>format</parameter> kann folgende Werte annehmen.
     <itemizedlist>
      <listitem>
       <simpara>
        1 - gibt einen Array zur&uuml;ck, der alle Worte innerhalb von 
<parameter>string</parameter>
        enth&auml;lt.
       </simpara>
      </listitem>
      <listitem>
       <simpara>
        2 - gibt einen asoziativen Array zur&uuml;ck, dessen Schl&uuml;ssel die 
Position des Wortes 
        innerhalb von <parameter>string</parameter> ist und dessen Wert das 
eigentliche Wort ist.
       </simpara>
      </listitem> 
     </itemizedlist>
    </para>
    <para>
     F&uuml;r diese Funktion wird 'Wort' als <literal>locale</literal> abh&auml;ngige 
Zeichenfolge
     definiert, die zus&auml;tzlich zu den Zeichen des Alphabets auch &quot;'&quot; 
and &quot;-&quot;
     Zeichen Enthalten kann, jedoch nicht damit beginnen darf.
    </para>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

Index: phpdoc/en/reference/strings/functions/str-word-count.xml
+++ phpdoc/en/reference/strings/functions/str-word-count.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
  <refentry id="function.str-word-count">
   <refnamediv>
    <refname>str_word_count</refname>
    <refpurpose>
     Return information about words used in a string
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>mixed</type><methodname>str_word_count</methodname>
      <methodparam><type>string</type><parameter>string</parameter></methodparam>
      <methodparam 
choice="opt"><type>int</type><parameter>format</parameter></methodparam>
     </methodsynopsis>
    <para>
     Counts the number of words inside <parameter>string</parameter>. 
     If the optional <parameter>format</parameter> is not specified, then 
     the return value will be an integer representing the number of words 
     found. In the event the <parameter>format</parameter> is specified, the return
     value will be an array, content of which is dependent on the 
     <parameter>format</parameter>. The possible value for the 
     <parameter>format</parameter> and the resultant outputs are listed below.
     <itemizedlist>
      <listitem>
       <simpara>
        1 - returns an array containing all the words found inside the
        <parameter>string</parameter>.
       </simpara>
      </listitem>
      <listitem>
       <simpara>
        2 - returns an associative array, where the key is the numeric 
        position of the word inside the <parameter>string</parameter> and 
        the value is the actual word itself.
       </simpara>
      </listitem> 
     </itemizedlist>
    </para>
    <para>
     For the purpose of this function, 'word' is defined as a locale dependent
     string containing alphabetic characters, which also may contain, but not start
     with &quot;'&quot; and &quot;-&quot; characters.
    </para>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to