adding stristr example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113959 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2003-01-30 13:40:40 +00:00
parent ce0d33d858
commit 33ce2f6296

View file

@ -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>
@ -28,6 +28,21 @@
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>,
<function>strrchr</function>, <function>substr</function>, and