Re: $name = "My $row['name']" not longer possible?
| From: | Richard Lynch | Date: | Tue, 02 Jul 2002 22:37:30 +0000 |
| Subject: | Re: $name = "My $row['name']" not longer possible? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105081@lists.php.net to get a copy of this message | ||
>Hi,
>I upgraded to 4.2 and now I get those errormessages
>"Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
>T_STRING or T_VARIABLE or T_NUM_STRING in ..."
>
>when doing sth like:
>$name = "My $row['name']";
>
>Why?
My Best Guess:
The $row['name'] part should be $row[name] and always has been.
It used to work as an "undocumented feature" (aka "bug") but it just
doesn't
any more.
"Why?" would probably involve about two hours of Ze'ev and Andi talking
about parser stuff that you really don't want to listen to... Corner them
at a PHP Conference if I'm wrong on that score :-)
--
Like Music? http://l-i-e.com/artists.htm