mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
*** empty log message ***
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@257681 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b2bf9eca02
commit
8049649d60
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.19 $ -->
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stristr">
|
||||
<refnamediv>
|
||||
<refname>stristr</refname>
|
||||
|
@ -107,7 +107,7 @@
|
|||
<?php
|
||||
$email = 'USER@EXAMPLE.com';
|
||||
echo stristr($email, 'e'); // outputs ER@EXAMPLE.com
|
||||
echo stristr($email, 'e', true); // outputs US
|
||||
echo stristr($email, 'e', true); // As of PHP 5.3.0, outputs US
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strstr">
|
||||
<refnamediv>
|
||||
<refname>strstr</refname>
|
||||
|
@ -119,7 +119,7 @@ $email = 'name@example.com';
|
|||
$domain = strstr($email, '@');
|
||||
echo $domain; // prints @example.com
|
||||
|
||||
$user = strstr($email, '@', true);
|
||||
$user = strstr($email, '@', true); // As of PHP 5.3.0
|
||||
echo $user; // prints name
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue