Date: 10/26/00
- Next message: Heiner Steven: "[PHP-DEV] Re: PHP 4.0 Bug #7478 Updated: empty() function does not work as expected"
- Previous message: Alexander Feldman: "Re: [PHP-DEV] Serious Session Handler Problem"
- In reply to: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7453 Updated: echo still not handling double scripted arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 11:14 26-10-00 +0000, joey <email protected> wrote:
>ID: 7453
>Updated by: joey
>Reported By: pwoneill <email protected>
>Status: Closed
>Bug Type: *General Issues
>Assigned To:
>Comments:
>
>I'm not sure why Jim said that. I've never seen this work
>any other way...it's just a know limitation. Instead do:
>$tmp = $array[0]["somekey"];
>print $tmp;
Try echo "plop {$array[0][somekey]} plop";
of "plop ${array[0][somekey]} plop";
One of those i thought :)
Greetz,
Wico
>I doubt this will change soon.
>
>Previous Comments:
>---------------------------------------------------------------------------
>
>[2000-10-25 12:12:09] pwoneill <email protected>
>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, %sn", $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.
>
>
>---------------------------------------------------------------------------
>
>
>Full Bug description available at: http://bugs.php.net/?id=7453
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Heiner Steven: "[PHP-DEV] Re: PHP 4.0 Bug #7478 Updated: empty() function does not work as expected"
- Previous message: Alexander Feldman: "Re: [PHP-DEV] Serious Session Handler Problem"
- In reply to: joey <email protected>: "[PHP-DEV] PHP 4.0 Bug #7453 Updated: echo still not handling double scripted arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

