Mention that the optional start and length parameters became available in PHP 4.3.0

#info provided by rioter


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164235 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2004-07-24 18:47:20 +00:00
parent 0135a20119
commit cf5a800639
2 changed files with 12 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.strcspn">
<refnamediv>
@ -23,9 +23,10 @@
contain any of the characters in <parameter>str2</parameter>.
</simpara>
<simpara>
Additionally it accepts two optional integer
parameters that can be used to define the starting position
and the length of the string to examine.
As of PHP 4.3.0, <function>strcspn</function> accepts two optional
<type>integer</type> parameters that can be used to define the
<parameter>start</parameter> position and the
<parameter>length</parameter> of the string to examine.
</simpara>
&note.bin-safe;

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.strspn">
<refnamediv>
@ -36,10 +36,13 @@ $var = strspn("42 is the answer, what is the question ...", "1234567890");
will assign 2 to <varname>$var</varname>, because the string "42" will
be the longest segment containing characters from "1234567890".
</para>
<simpara>
As of PHP 4.3.0, <function>strspn</function> accepts two optional
<type>integer</type> parameters that can be used to define the
<parameter>start</parameter> position and the
<parameter>length</parameter> of the string to examine.
</simpara>
<para>
Additionally it accepts two optional integer
parameters that can be used to define the starting position
and the length of the string to examine.
<informalexample>
<programlisting role="php">
<![CDATA[