cvs: phpdoc /en/functions strings.xml

From: Date: Mon, 26 Mar 2001 03:44:44 +0000
Subject: cvs: phpdoc /en/functions strings.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334803@lists.php.net to get a copy of this message
jmcastagnetto Sun Mar 25 19:44:44 2001 EDT Modified files: /phpdoc/en/functions strings.xml Log: Added some more text to explain the strspn example Index: phpdoc/en/functions/strings.xml diff -u phpdoc/en/functions/strings.xml:1.79 phpdoc/en/functions/strings.xml:1.80 --- phpdoc/en/functions/strings.xml:1.79 Tue Mar 20 21:59:43 2001 +++ phpdoc/en/functions/strings.xml Sun Mar 25 19:44:44 2001 @@ -2775,15 +2775,15 @@ <parameter>str1</parameter> which consists entirely of characters in <parameter>str2</parameter>. </simpara> - <para> + <para> + The line of code: <informalexample> <programlisting role="php"> -strspn ("42 is the answer, what is the question ...", "1234567890"); +$var = strspn ("42 is the answer, what is the question ...", "1234567890"); </programlisting> - <para> - will return 2 as result. - </para> </informalexample> + will assign 2 to <varname>$var</varname>, because the string "42" will + be the longest segment containing characters from "1234567890". </para> <simpara> See also <function>strcspn</function>.

« previous php.doc (#969334803) next »