Re: Quotes in Heredoc

From: Date: Sat, 26 Feb 2011 13:12:16 +0000
Subject: Re: Quotes in Heredoc
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-311587@lists.php.net to get a copy of this message
On Sat, 2011-02-26 at 16:27 +0530, Ashim Kapoor wrote: > The quotes you mention are in the HTML, nothing to do with PHP. HTML will > work without the quotes in most cases (unless there's a space in the value > for the attribute) but the quotes are required in XHTML and will cause > unexpected results. > > Can you elaborate on the XHTML part? Do you mean they are required in XHTML > but optional in HTML ? > > Many thanks, > Ashim. Yes, in HTML the quotes are optional, but they are required in XHTML documents: http://www.w3.org/TR/xhtml1/diffs.html#h-4.4 Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#311587) next »