RE: [PHP] probably stupid, but...
| From: | Chris W. Parker | Date: | Sat, 13 Nov 2004 00:05:55 +0000 |
| Subject: | RE: [PHP] probably stupid, but... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201886@lists.php.net to get a copy of this message | ||
-{ Rene Brehmer }- <mailto:metalbunny@metalbunny.net>
on Friday, November 12, 2004 3:53 PM said:
> At 21:32 12-11-2004, Chris W. Parker wrote:
>> also you need to wrap your array values in { } when an array is
>> referenced within a string. i.e.
>>
>> // normal
>> $value = $_GET['something'];
>>
>> // with { }
>> $value = "Here is some data: {$_GET['something']}";
>
> Is that actually in the manual ??? If it is, where ?
Yes.
http://us2.php.net/manual/en/language.types.array.php
Search for "More examples to demonstrate this fact" then go down near
the bottom of that box and you'll see it.
Chris.