RE: [PHP] Re: Quotes in Heredoc

From: Date: Mon, 28 Feb 2011 18:10:38 +0000
Subject: RE: [PHP] Re: Quotes in Heredoc
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-311594@lists.php.net to get a copy of this message
From: Colin Guthrie >'Twas brillig, and Bob McConnell at 28/02/11 13:23 did gyre and gimble: >> XHTML also requires all tags, attribute labels and values to be in lower >> case and values must be quoted. So your original content should be >> >> <table cellpadding="0" cellspacing="0" border="0" >> align="center" >> width="621"> >> <tr> >> <td rowspan="2"><img width="15" height="1" >> src="../images/spacer.gif"></td> >> > > Actually, in xhtml the <img> tag would need a corresponding </img> tag, > or it can be self closing: > > e.g. <img width="15" height="1" src="../images/spacer.gif" > /> > > (technically the space before the /> bit above is not needed, but used > to be needed to stop older versions of IE from exploding... these > probably are not worth worrying about these days tho') Ooops, forgot that one. XHTML is XML compliant, so all tags must be closed properly. Also, you can't use the PHP short open tag, because it collides with a specific XML tag. Bob McConnell

« previous php.general (#311594) next »