On Wed, Jul 21, 2010 at 15:27, Nathan Nobbe wrote:
>
[snip!]
> name unless the string expression is wrapped in double quotes (which probly
> also evaluates in heredocs & nowdocs).
[snip!]
Close. HEREDOC, yes. NOWDOC, no. There's zero parsing done on
NOWDOC strings.
--
UNADVERTISED DEDIC
On Wed, Jul 21, 2010 at 1:32 PM, Daniel Brown wrote:
> On Wed, Jul 21, 2010 at 15:27, Nathan Nobbe
> wrote:
> >
> [snip!]
> > name unless the string expression is wrapped in double quotes (which
> probly
> > also evaluates in heredocs & nowdocs).
> [snip!]
>
>Close. HEREDOC, yes. NOWDOC, n
On Wed, Jul 21, 2010 at 22:27, Nathan Nobbe 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 evaluat
On Wed, Jul 21, 2010 at 1:17 PM, Dotan Cohen wrote:
> On Wed, Jul 21, 2010 at 22:07, Daniel Brown wrote:
> >That's just basic variable parsing on the PHP side, it's not
> > MySQL-specific. Check out the "variable parsing" heading at
> > http://php.net/string .
> >
>
> Thanks, Daniel. It see
On Wed, Jul 21, 2010 at 22:07, Daniel Brown wrote:
> That's just basic variable parsing on the PHP side, it's not
> MySQL-specific. Check out the "variable parsing" heading at
> http://php.net/string .
>
Thanks, Daniel. It seems unnecessary, then, as the quote character is
not a valid charact
On Wed, Jul 21, 2010 at 14:59, Dotan Cohen wrote:
> Take for example:
> INSERT INTO table ( field ) VALUES ('{$variable}' )
>
> Why the curly brackets? Where in the fine manual is this addressed? I
> started from [1] but did not find the relevant info.
>
> [1] http://il2.php.net/manual/en/book.mys
Take for example:
INSERT INTO table ( field ) VALUES ('{$variable}' )
Why the curly brackets? Where in the fine manual is this addressed? I
started from [1] but did not find the relevant info.
[1] http://il2.php.net/manual/en/book.mysql.php
--
Dotan Cohen
http://gibberish.co.il
http://what-is-
7 matches
Mail list logo