RE: [PHP] alternatively
| From: | Ford, Mike | Date: | Mon, 02 Oct 2006 16:33:31 +0000 |
| Subject: | RE: [PHP] alternatively | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242482@lists.php.net to get a copy of this message | ||
On 02 October 2006 15:20, Jochem Maas wrote:
> David Tulloh wrote:
> > Ross wrote:
> > > How can I get this line to work
> > >
> > > $mail_body .= "<font size=\"2\" face=\"Verdana, Arial,
> > > Helvetica,
> > > sans-serif\"> Title: $row['title'] </font>";
> > >
> > > The $row['title'] variable is the problem.
> >
> > Drop the quotes when you are inside a quoted string.
> > $mail_body .= "... Title: $row[title] </font>";
>
> does that actually work?
Not only works, but fully documented as a valid method -- see http://uk.php..net/manual/en/language.types.string.php#language.types.string.parsing.simple
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm