<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vim, Cygwin, MySQL &#38; Zsh Tips &#187; hereis document</title>
	<atom:link href="http://zzapper.co.uk/tag/hereis-document/feed/" rel="self" type="application/rss+xml" />
	<link>http://zzapper.co.uk</link>
	<description></description>
	<lastBuildDate>Tue, 13 Jul 2010 22:45:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Hereis Document for PHP: Great for Generation of HTML</title>
		<link>http://zzapper.co.uk/hereis-document-for-php-great-for-generation-of-html/</link>
		<comments>http://zzapper.co.uk/hereis-document-for-php-great-for-generation-of-html/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 18:28:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[hereis document]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=47</guid>
		<description><![CDATA[I see so much ugly tangled php/javascript/html/css code which could be tidied up with the PHP Hereis Document]]></description>
			<content:encoded><![CDATA[<p><code>The great thing about hereis documents is that in most cases you don't have to backslash quotes, your "html" thus retains its visibility<br />
echo &lt;&lt;&lt;__HTML__</code><br />
&lt;li&gt;&lt;a href=&#8221;$pressdir$file&#8221;&gt;$file&lt;/a&gt;<br />
__HTML__;</p>
<p>$html.= &lt;&lt;&lt;__HTML__<br />
&lt;li&gt;&lt;a href=&#8221;$pressdir$file&#8221;&gt;$file&lt;/a&gt;<br />
__HTML__;</p>
<p>return &lt;&lt;&lt;__HTML__<br />
&lt;li&gt;&lt;a href=&#8221;$pressdir$file&#8221;&gt;$file&lt;/a&gt;<br />
__HTML__;</p>
<p>it can also cope with arrays if you use the following syntax ${my_array['postcode']}</p>
<p>return &lt;&lt;&lt;__HTML__<br />
&lt;li&gt;&lt;a href=&#8221;$multimap_url${my_array['postcode']}&#8221;&gt;${my_array['postcode']}&lt;/a&gt;<br />
__HTML__;</p>
<p>I see so much ugly tangled php/javascript/html/css code which could be tidied up with the PHP Hereis Document</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/hereis-document-for-php-great-for-generation-of-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
