PHP 4.0 Bug #7453: echo still not handling double scripted arrays

From: Date: Wed, 25 Oct 2000 16:12:09 +0000
Subject: PHP 4.0 Bug #7453: echo still not handling double scripted arrays
Groups: php.dev 
Request: Send a blank email to php-dev+get-35925@lists.php.net to get a copy of this message
From: pwoneill@email.com Operating system: WinNT, Redhat 6.2 PHP version: 4.0.3pl1 PHP Bug Type: *General Issues Bug description: echo still not handling double scripted arrays This was originally posted in Bug #1859, which is closed, saying it was fixed in PHP 4.0, but I have been having a similar problem Example Code: --------------------- <?php $people = array( array("Name" => "Bill", "Age" => "20"), array("Name" => "Bob", "Age" => "30") ); echo ("using echo embedded, $people[0][Name]\n"); echo ("using echo non-embedded, " . $people[0][Name] . "\n"); printf("using printf, %s\n", $people[0][Name]); ?> Output: ------------------------- using echo embedded, Array[Name] using echo non-embedded, Bill using printf, Bill It seems the variables-in-quotes expansion isn't working at least in this case of PHP 4.0.3pl1. -- Edit Bug report at: http://bugs.php.net/?id=7453&edit=1

« previous php.dev (#35925) next »