note 73582 added to language.operators.assignment

From: Date: Fri, 02 Mar 2007 04:26:39 +0000
Subject: note 73582 added to language.operators.assignment
Groups: php.notes 
Request: Send a blank email to php-notes+get-124007@lists.php.net to get a copy of this message
a comment on trosos at atlas dot cz's post. it would have helped a lot if you posted an actual code snippet, since the following <?php function f(&$a) { $a = 10; } f($v=3); var_dump($v); ?> produced 3 as the contents of $v instead of 10. if the reference to the variable were passed then the result should have been 10. or maybe i'm mistaken... ---- Server IP: 203.220.0.234 Probable Submitter: 124.104.75.218 ---- Manual Page -- http://www.php.net/manual/en/language.operators.assignment.php Edit -- https://master.php.net/note/edit/73582 Del: integrated -- https://master.php.net/note/delete/73582/integrated Del: useless -- https://master.php.net/note/delete/73582/useless Del: bad code -- https://master.php.net/note/delete/73582/bad+code Del: spam -- https://master.php.net/note/delete/73582/spam Del: non-english -- https://master.php.net/note/delete/73582/non-english Del: in docs -- https://master.php.net/note/delete/73582/in+docs Del: other reasons-- https://master.php.net/note/delete/73582 Reject -- https://master.php.net/note/reject/73582 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124007) next »