RE: [PHP] $name = "My $row['name']" not longer possible?
| From: | Matt Schroebel | Date: | Tue, 02 Jul 2002 19:06:38 +0000 |
| Subject: | RE: [PHP] $name = "My $row['name']" not longer possible? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104997@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Hugo Wetterberg [mailto:hugo@wetterberg.com]
> Sent: Tuesday, July 02, 2002 1:12 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] $name = "My $row['name']" not longer possible?
> It is possible to use arrays within strings, just skip ''.
> Write
> $name="My $name[name]";
> instead
Yes, but the manual says that's a feature that may not exist in future versions of php. See
this link for details:
http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar