Re: mysterious behaving an "manual array push" - Cannot use [] for reading in...

From: Date: Tue, 11 Jul 2000 17:00:44 +0000
Subject: Re: mysterious behaving an "manual array push" - Cannot use [] for reading in...
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-24207@lists.php.net to get a copy of this message
i assume you know that the proper syntax for class field deref is
sure, but I´m using variable vars (exactly variable properties (of objects)) so I legally use $this->$var and I´m just interested why I´m forced to use array_push() maybe it has been forgotten for [] or it´s a bug or...
<?php class a { function a($nr) { $var='test'; $this->$val[]=$nr; }} new a(); ?>
regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#24207) next »