note 83732 added to language.references.whatdo

From: Date: Mon, 09 Jun 2008 18:33:33 +0000
Subject: note 83732 added to language.references.whatdo
Groups: php.notes 
Request: Send a blank email to php-notes+get-140279@lists.php.net to get a copy of this message
In reply to Drewseph using foo($a = 'set'); where $a is a reference formal parameter. $a = 'set' is an expression. Expressions cannot be passed by reference, don't you just hate that, I do. If you turn on error reporting for E_NOTICE, you will be told about it. Resolution: $a = 'set'; foo($a); this does what you want. ---- Server IP: 69.147.83.197 Probable Submitter: 76.105.247.92 ---- Manual Page -- http://www.php.net/manual/en/language.references.whatdo.php Edit -- https://master.php.net/note/edit/83732 Del: integrated -- https://master.php.net/note/delete/83732/integrated Del: useless -- https://master.php.net/note/delete/83732/useless Del: bad code -- https://master.php.net/note/delete/83732/bad+code Del: spam -- https://master.php.net/note/delete/83732/spam Del: non-english -- https://master.php.net/note/delete/83732/non-english Del: in docs -- https://master.php.net/note/delete/83732/in+docs Del: other reasons-- https://master.php.net/note/delete/83732 Reject -- https://master.php.net/note/reject/83732 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140279) next »