mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
ce0d33d858
commit
33ce2f6296
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue