note 99546 added to language.references.pass
| From: | northhero at gmail dot com | Date: | Tue, 24 Aug 2010 02:02:11 +0000 |
| Subject: | note 99546 added to language.references.pass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171958@lists.php.net to get a copy of this message | ||
Passing variable reference to function instead of declaring the function parameter type to reference
also could get the result as expected.
$string = 'string';
function change($str) {
$str = 'str';
}
change(&$string);
echo $string;
yeild
str
----
Server IP: 61.195.146.164
Probable Submitter: 126.112.211.154
----
Manual Page -- http://www.php.net/manual/en/language.references.pass.php
Edit -- https://master.php.net/note/edit/99546
Del: integrated -- https://master.php.net/note/delete/99546/integrated
Del: useless -- https://master.php.net/note/delete/99546/useless
Del: bad code -- https://master.php.net/note/delete/99546/bad+code
Del: spam -- https://master.php.net/note/delete/99546/spam
Del: non-english -- https://master.php.net/note/delete/99546/non-english
Del: in docs -- https://master.php.net/note/delete/99546/in+docs
Del: other reasons-- https://master.php.net/note/delete/99546
Reject -- https://master.php.net/note/reject/99546
Search -- https://master.php.net/manage/user-notes.php