cvs: phpdoc /en/reference/strings/functions stristr.xml

From: Date: Thu, 30 Jan 2003 13:40:40 +0000
Subject: cvs: phpdoc /en/reference/strings/functions stristr.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351413@lists.php.net to get a copy of this message
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 = 'USER@EXAMPLE.com'; + $domain = stristr($email, 'e'); + print $domain; +// Affiche ER@EXAMPLE.com +?> +]]> + </programlisting> + </example> </para> <para> See also <function>strchr</function>,

« previous php.doc (#969351413) next »