mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Call time reference is depreciated. Deleted description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68296 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3117543cee
commit
823b4cc86c
1 changed files with 1 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.23 $ -->
|
||||
<!-- $Revision: 1.24 $ -->
|
||||
<chapter id="functions">
|
||||
<title>Functions</title>
|
||||
|
||||
|
@ -121,28 +121,6 @@ echo $str; // outputs 'This is a string, and something extra.'
|
|||
</informalexample>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you wish to pass a variable by reference to a function which
|
||||
does not do this by default, you may prepend an ampersand to the
|
||||
argument name in the function call:
|
||||
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
function foo ($bar)
|
||||
{
|
||||
$bar .= ' and something extra.';
|
||||
}
|
||||
$str = 'This is a string, ';
|
||||
foo ($str);
|
||||
echo $str; // outputs 'This is a string, '
|
||||
foo (&$str);
|
||||
echo $str; // outputs 'This is a string, and something extra.'
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="functions.arguments.default">
|
||||
|
|
Loading…
Reference in a new issue