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>.
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Sean Bright
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Sean Bright
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Sascha Schumann
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Jani Taskinen
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Rasmus Lerdorf
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Anil Madhavapeddy
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Anil Madhavapeddy
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Hartmut Holzgraefe
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Jani Taskinen
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions strings.xml Jeroen van Wolffelaar
