|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-09-25 19:52 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
(is it a bug or an improvement?) I create class test { var $value; function test() { $this->value = 2; } } $myTest = new test(); And then, if I try to access to $GLOBALS["myTest->value"], i get an empty string. and I would like to get $myTest->value... To fix it, i have to ereg("^([a-zA-Z0-9_-]*)->([a-zA-Z0-9_-]*)",$name,$regs) all the strings I want to pass to $GLOBALS. It's not so usefull... The same is true with $GLOBALS["foo[0]"]; Thanks for your time.