Re: What are the curly brackets around variables in SQL statements for?
| From: | Dotan Cohen | Date: | Wed, 21 Jul 2010 19:32:56 +0000 |
| Subject: | Re: What are the curly brackets around variables in SQL statements for? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307077@lists.php.net to get a copy of this message | ||
On Wed, Jul 21, 2010 at 22:27, Nathan Nobbe <quickshiftin@gmail.com> wrote:
> the single quote is not part of the variable name in the example you posted
> and further more the curly braces won't be evaluated as part of a variable
> name unless the string expression is wrapped in double quotes (which probly
> also evaluates in heredocs & nowdocs). in this case, i would say you are
> right, the curly braces seem gratuitous; again as dan suggested, read the
> docs for clarification ...
>
> http://us.php.net/manual/en/language.types.string.php#language.types.string.parsing
Thanks, Nathan, I _just_finished_ reading that page!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com