Re: Quotes in querys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, Thats the kind of help I was looking for.
Mike
<ceo@xxxxxxxxx> wrote in message 
news:20090114162142.65944.qmail@xxxxxxxxxxxxxxxxxx
>
> You can only interpolate ONE level of array or object indirection in a 
> string.
>
> WORKS:
> "... $foo[x] ..."
> "... $foo->x ..."
>
> FAILS:
> "... $foo[x][y] ..."
> "... $foo->x->y ..." //almost for sure it fails, never tried...
>
> You can use curly braces in side a string to evaluate something:
>
> WORKS:
> "... {$foo[x][y]} ..."
> "... {$foo->x->y} ..."
>
> [soapbox]
> I personally think this is possibly the ugliest wart of variable/string 
> interpolation.
>
> Not sure how/why it came about, but it makes zero sense, really...
> [/soapbox]
>
> ymmv
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux