dams Thu Jan 30 08:40:40 2003 EDT
Modified files:
/phpdoc/en/reference/strings/functions stristr.xml
Log:
adding stristr example
Index: phpdoc/en/reference/strings/functions/stristr.xml
diff -u phpdoc/en/reference/strings/functions/stristr.xml:1.2
phpdoc/en/reference/strings/functions/stristr.xml:1.3
--- phpdoc/en/reference/strings/functions/stristr.xml:1.2 Wed Apr 17 02:44:23
2002
+++ phpdoc/en/reference/strings/functions/stristr.xml Thu Jan 30 08:40:40 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.8 -->
<refentry id="function.stristr">
<refnamediv>
@@ -27,6 +27,21 @@
<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>
+ <para>
+ <example>
+ <title><function>stristr</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+ $email = '[EMAIL PROTECTED]';
+ $domain = stristr($email, 'e');
+ print $domain;
+// Affiche [EMAIL PROTECTED]
+?>
+]]>
+ </programlisting>
+ </example>
</para>
<para>
See also <function>strchr</function>,
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php