[nycphp-talk] Re: Evaluating variables in a heredoc (Found answer)
Dan Cech
dcech at phpwerx.net
Tue Jan 6 00:03:22 EST 2004
Using this syntax will work for simple arrays, but it is generally
preferable to use the curly brackets syntax, as it will also work with
object variables, etc.
You can read more here: http://www.php.net/types.string
Dan
Webapprentice . wrote:
> I made a mistake. I noticed that in order to evaluate variables, I have to use them without any additional quotes. So if I'm dealing with an array, I have t remove the internal quotes.
>
> I originally had $errorMessage["username"] and PHP was complaining about that format.
>
> I presume this is the way it is supposed to work.
>
> Sorry about that.
>
> --Stephen
More information about the talk
mailing list