PHP 4.0 Bug #8662: Echo of type "array of array"...
| From: | webmaster at scaninvestor dot com | Date: | Thu, 11 Jan 2001 21:52:03 +0000 |
| Subject: | PHP 4.0 Bug #8662: Echo of type "array of array"... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43817@lists.php.net to get a copy of this message | ||
From: webmaster@scaninvestor.com
Operating system: Windows 2000
PHP version: 4.0.4
PHP Bug Type: Arrays related
Bug description: Echo of type "array of array"...
$PHPsource = array(
"0" => array(
"foo" => "Hello",
"bar" => "World"
);
echo "Hello: $PHPsource[0][bar]";
Sould be:
"Hello: world"
But comes up:
"Hello: Array[bar]"
This is working:
echo "Hello: ".$PHPsource[0][bar];
It seems like inside the " there is a problem identifying varibels the right way.
--
Edit Bug report at: http://bugs.php.net/?id=8662&edit=1