RE: [PHP] escaping quotes

From: Date: Thu, 27 Jan 2005 18:29:55 +0000
Subject: RE: [PHP] escaping quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207518@lists.php.net to get a copy of this message
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=\"" . ...

« previous php.general (#207518) next »