RE: escaping quotes

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

 



What also works is this:

 print 'value="'. $foo['bar'] . '"';

Read the manual section on strings:

 http://php.net/types.string

Regards,
Philip

On Thu, 27 Jan 2005, Giles wrote:

> Thanks, that works great.
> 
> Knew that worked for JavaScript but didn't know it worked for PHP.
> 
> > print("value="\" . $attributes["messageSubject"] . "\"");
> 
> Slight typo there:
> 
> "value=\"" . ...

-- 
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