cvs: /phpdoc/functions strings.sgml
| From: | Ken Coar | Date: | Mon, 06 Sep 1999 03:40:25 +0000 |
| Subject: | cvs: /phpdoc/functions strings.sgml | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10595@lists.php.net to get a copy of this message | ||
coar Sun Sep 5 23:40:25 1999 EDT
Modified files:
/phpdoc/functions strings.sgml
Log:
Add missing docco for stristr().
Index: phpdoc/functions/strings.sgml
diff -u phpdoc/functions/strings.sgml:1.11 phpdoc/functions/strings.sgml:1.12
--- phpdoc/functions/strings.sgml:1.11 Sun Sep 5 20:24:06 1999
+++ phpdoc/functions/strings.sgml Sun Sep 5 23:40:25 1999
@@ -1105,7 +1105,8 @@
<simpara>
See also <function>ereg</function>, <function>strcmp</function>,
- <function>substr</function>, and <function>strstr</function>.
+ <function>substr</function>, <function>stristr</function>,
+ and <function>strstr</function>.
</refsect1>
</refentry>
@@ -1153,7 +1154,8 @@
<simpara>
See also <function>ereg</function>, <function>strcasecmp</function>,
- <function>substr</function>, and <function>strstr</function>.
+ <function>substr</function>, <function>stristr</function>,
+ and <function>strstr</function>.
</refsect1>
</refentry>
@@ -1246,6 +1248,39 @@
</refsect1>
</refentry>
+ <refentry id="function.stristr">
+ <refnamediv>
+ <refname>stristr</refname>
+ <refpurpose>Case-insensitive strstr().</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>string <function>stristr</function></funcdef>
+ <paramdef>string <parameter>haystack</parameter></paramdef>
+ <paramdef>string <parameter>needle</parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ Returns all of <parameter>haystack</parameter> from the first
+ occurrence of <parameter>needle</parameter> to the end.
+ <parameter>needle</parameter> and <parameter>haystack</parameter>
+ are examined in a case-insensitive manner.
+
+ <para>
+ If <parameter>needle</parameter> is not found, returns false.
+
+ <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>
+ See also <function>strchr</function>, <function>strrchr</function>,
+ <function>substr</function>, and <function>ereg</function>.
+
+ </refsect1>
+ </refentry>
+
<refentry id="function.strlen">
<refnamediv>
<refname>strlen</refname>
@@ -1297,7 +1332,8 @@
<para>
See also <function>strrpos</function>, <function>strrchr</function>,
- <function>substr</function>, and <function>strstr</function>.
+ <function>substr</function>, <function>stristr</function>,
+ and <function>strstr</function>.
</refsect1>
</refentry>
@@ -1345,7 +1381,8 @@
</example>
<para>
- See also <function>substr</function> and <function>strstr</function>.
+ See also <function>substr</function>, <function>stristr</function>,
+ and <function>strstr</function>.
</refsect1>
</refentry>
@@ -1396,7 +1433,8 @@
<para>
See also <function>strpos</function>, <function>strrchr</function>,
- <function>substr</function>, and <function>strstr</function>.
+ <function>substr</function>, <function>stristr</function>,
+ and <function>strstr</function>.
</refsect1>
</refentry>
@@ -1449,7 +1487,7 @@
an integer and applied as the ordinal value of a character.
<para>
- See also <function>strrchr</function>,
+ See also <function>stristr</function>, <function>strrchr</function>,
<function>substr</function>, and <function>ereg</function>.
</refsect1>