note 104041 deleted from functions.arguments by danbrown

From: Date: Thu, 19 May 2011 13:52:19 +0000
Subject: note 104041 deleted from functions.arguments by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179879@lists.php.net to get a copy of this message
Note Submitter: omid ---- 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 )

« previous php.notes (#179879) next »