note 56396 deleted from function.parse-str by googleguy

From: Date: Tue, 22 Oct 2013 14:53:59 +0000
Subject: note 56396 deleted from function.parse-str by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197211@lists.php.net to get a copy of this message
Note Submitter: ET ---- In reply to what kerosuppi posted: [quote]This does not work as expected.[/quote] No, it works exactly as expected. The call <?php parse_str($this->query_string);?> "sets variables in the current scope" (just like said in the manual). You are using this call in the constructor. Once the constructor is finished, the scope of this function has ended so it's logical that you can't access the variables anymore. Your workaround though is a good one. Hope this helps, ET

« previous php.notes (#197211) next »