|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-31 13:08 UTC] cnewbill@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
<? class test{ var $items; function test1(){ $this->$items['foo']='test'; } } $test=new test; $test->test1(); echo $test->$items['bar']; ?> last line will output "test"