note 104041 added to functions.arguments
| From: | omid at osu1 dot php dot net | Date: | Thu, 19 May 2011 07:06:07 +0000 |
| Subject: | note 104041 added to functions.arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179868@lists.php.net to get a copy of this message | ||
function add_some_extra(&$string)
{
$string['a'] = 'and something extra.';
}
$str['b'] = 'This is a string';
add_some_extra($str);
print_r($str); // Array ( [b] => This is a string, [a] => and something extra. )
//---------------------------------------------------------------
function add_some_extra($string)
{
$string['a'] = 'and something extra.';
}
$str['b'] = 'This is a string';
add_some_extra($str);
print_r($str); // Array ( [b] => This is a string )
----
Server IP: 69.147.83.197
Probable Submitter: 184.154.36.3
----
Manual Page -- http://www.php.net/manual/en/functions.arguments.php
Edit -- https://master.php.net/note/edit/104041
Del: integrated -- https://master.php.net/note/delete/104041/integrated
Del: useless -- https://master.php.net/note/delete/104041/useless
Del: bad code -- https://master.php.net/note/delete/104041/bad+code
Del: spam -- https://master.php.net/note/delete/104041/spam
Del: non-english -- https://master.php.net/note/delete/104041/non-english
Del: in docs -- https://master.php.net/note/delete/104041/in+docs
Del: other reasons-- https://master.php.net/note/delete/104041
Reject -- https://master.php.net/note/reject/104041
Search -- https://master.php.net/manage/user-notes.php