Date: 03/25/01
- Next message: Martin Kraemer: "[PHP-DOC] cvs: phpdoc /de/chapters config.xml"
- Previous message: Hojtsy Gabor: "[PHP-DOC] xmlspy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>.
- Next message: Martin Kraemer: "[PHP-DOC] cvs: phpdoc /de/chapters config.xml"
- Previous message: Hojtsy Gabor: "[PHP-DOC] xmlspy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

