CVS update: php3/doc/functions
| From: | jim | Date: | Sun, 11 Oct 1998 01:21:41 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1812@lists.php.net to get a copy of this message | ||
Date: Saturday October 10, 1998 @ 21:21
Author: jim
Update of /repository/php3/doc/functions
In directory asf:/u2/tmp/cvs-serv1707/doc/functions
Modified Files:
strings.sgml
Log Message:
Added optional third parameter to strpos() to specify offset to start searching from.
Index: php3/doc/functions/strings.sgml
diff -c php3/doc/functions/strings.sgml:1.36 php3/doc/functions/strings.sgml:1.37
*** php3/doc/functions/strings.sgml:1.36 Tue Sep 22 11:46:42 1998
--- php3/doc/functions/strings.sgml Sat Oct 10 21:21:40 1998
***************
*** 959,964 ****
--- 959,965 ----
<funcdef>string <function>strpos</function></funcdef>
<paramdef>string <parameter>haystack</parameter></paramdef>
<paramdef>string <parameter>needle</parameter></paramdef>
+ <paramdef>int
<parameter><optional>offset</optional></parameter></paramdef>
</funcsynopsis>
<para>
***************
*** 973,978 ****
--- 974,984 ----
<para>
If <parameter>needle</parameter> is not a string, it is converted to
an integer and applied as the ordinal value of a character.
+ <para>
+ The optional <parameter>offset</parameter> parameter allows you to
+ specify which character in <parameter>haystack</parameter> to start
+ searching. The position returned is still relative to the the beginning
+ of <parameter>haystack</parameter>.
<para>
See also <function>strrpos</function>, <function>strrchr</function>,
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net