mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Use return value in examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185671 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
914dc5eb75
commit
8dd241c49e
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="runkit.sandbox">
|
||||
<refnamediv>
|
||||
|
@ -165,7 +165,7 @@ bool(false)
|
|||
<?php
|
||||
$sandbox = new Runkit_Sandbox();
|
||||
|
||||
$sandbox->str_replace('a','f','abc');
|
||||
echo $sandbox->str_replace('a','f','abc');
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -191,8 +191,8 @@ $sandbox = new Runkit_Sandbox();
|
|||
|
||||
$foo = 'bar';
|
||||
$sandbox->foo = 'baz';
|
||||
$sandbox->str_replace('a',$foo,'a');
|
||||
$sandbox->str_replace('a',$sandbox->foo,'a');
|
||||
echo $sandbox->str_replace('a',$foo,'a');
|
||||
echo $sandbox->str_replace('a',$sandbox->foo,'a');
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue