note 34365 added to functions.arguments
| From: | redshift at pandora dot be | Date: | Thu, 24 Jul 2003 23:16:58 +0000 |
| Subject: | note 34365 added to functions.arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52594@lists.php.net to get a copy of this message | ||
If you don't understand what "Passing by reference" is, here's a simple script
that should make it quite clear:
<pre>
<?php
$bar = "blah";
echo $bar;
function foo(&$string)
{
return $string = strtoupper($string);
}
echo "
";
foo($bar);
echo $bar;
?>
Execute this code and you'll know it in a blink of an eye ;-)
----
Manual Page -- http://www.php.net/manual/en/functions.arguments.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34365
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34365&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34365&report=yes