Re: Lexical scoping
From: Andrea Faulds Date: Tue, 28 Jan 2014 16:06:01 +0000 Subject: Re: Lexical scoping References: 1 2 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
On 28/01/14 12:31, Sebastian Krebs wrote:foreach ($array as &$a) {You just changed the last element of the array to null. See why I proposed this? ;) -- Andrea Faulds http://ajf.me/$a = 3;} $a = null; // $a not a reference anymore. Problem solved :)
Thread (11 messages)
« previous | php.internals (#71675) | next » |
---|