NYCPHP Meetup

NYPHP.org

[nycphp-talk] single quote vs. double quote

Graham Hagger g.hagger at gmail.com
Wed Apr 4 19:41:50 EDT 2007


While I agree wholeheartedly it's important to note that....

Paul Houle wrote:
>
>
> gets the desired effect.   The long form also lets you do cool things
> with arrays and object,  like
>
> "{$my_array[$index]}"
> "{$my_array["i_can_really_use_quotes_to_have_a_string_here"]}"
> "{$object->special_property}"
...Using "{$object->method()}" does NOT work.  As in
{$object->getMemberVariableBecauseItsPrivate()}

Graham



More information about the talk mailing list