Re: PHP 4.0 Bug #6489: Class array variable members not interpreted correctly within string

From: Date: Fri, 01 Sep 2000 18:50:32 +0000
Subject: Re: PHP 4.0 Bug #6489: Class array variable members not interpreted correctly within string
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-31615@lists.php.net to get a copy of this message
Try: class a { var $var = array("key" => "value"); } $inst = new a; echo "{$inst->var[key]}"; Enjoy! Faisal At 05:56 PM 9/1/2000 +0000, nathan@cjhunter.com wrote:
<? class a { var $var = array("key" => "value"); } $inst = a(); echo "$a->var[key]"; ?>


« previous php.dev (#31615) next »