RE: [PHP] Quotes in Heredoc

2011-02-28 Thread tedd
At 8:23 AM -0500 2/28/11, Bob McConnell wrote: From: Ashim Kapoor From Ashley Sheridan 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 X

RE: [PHP] Quotes in Heredoc

2011-02-28 Thread Bob McConnell
From: Ashim Kapoor > From Ashley Sheridan >> 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. > >

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
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 > Ok Thank you, Ashim

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashley Sheridan
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 resu

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
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

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashley Sheridan
On Sat, 2011-02-26 at 14:41 +0530, Ashim Kapoor wrote: > Dear All, > > I am learning PHP by reading a book. My query pertains to the following > lines : - > > $form_str = <<< EOFORMSTR > WIDTH=621> > > SRC=../images/spacer.gif> > > > . > > My query is that is it true that we don't need