PHP 4.0 Bug #6489 Updated: Class array variable members not interpreted correctly within string
| From: | Bug Database | Date: | Sun, 03 Sep 2000 08:49:57 +0000 |
| Subject: | PHP 4.0 Bug #6489 Updated: Class array variable members not interpreted correctly within string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31741@lists.php.net to get a copy of this message | ||
ID: 6489
Updated by: stas
Reported By: nathan@cjhunter.com
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
You should use one of the following:
echo $a->var["key"]
or
echo "{$a->var[key]}"
BTW, the script you gave cannot work because it should be "new a();" and your variable is
named "inst" not "a".
Previous Comments:
[2000-09-03 04:49:57] stas@php.net
You should use one of the following:
echo $a->var["key"]
or
echo "{$a->var[key]}"
BTW, the script you gave cannot work because it should be "new a();" and your variable is
named "inst" not "a".
----------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6489