<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
	<channel>
		<language>en_GB</language>
		<title>17/07/2007: Pretty Printing for PHP</title>
		<link>http://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/</link>
		<description>&lt;p&gt;Here&amp;#8217;s a &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;function for reformatting the whitespace in &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;code&amp;#8230;&lt;/p&gt;</description>
		<item>
			<title>Comment 001</title>
			<link>http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment1</link>
			<description>&lt;p&gt;I tried running it on itself and got an error off line 51.&lt;/p&gt;

&lt;p&gt;13:02:37 [brussel@/ioBin]&amp;gt; ./pp.php pp.php&lt;br&gt;
./pp.php: line 51: syntax error near unexpected token `{echo&amp;#8217;&lt;br&gt;
./pp.php: line 51: `$sc  = &amp;#8216;echo &amp;#8220;1&amp;#8221;;if  (FALSE){echo 2;&amp;#8217;&lt;br&gt;
13:02:42 [brussel@/ioBin]&amp;gt;&lt;/p&gt;
&lt;div class=&quot;comment_credits&quot;&gt;
	&lt;span class=&quot;author line&quot;&gt;&lt;strong&gt;Author:&lt;/strong&gt; &lt;a href=&quot;http://tobyinkster.co.uk/~anonymous/&quot;&gt;Anonymous Coward&lt;/a&gt; &lt;span class=&quot;ip&quot;&gt;[71.128.205.4]&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&lt;span class=&quot;date line&quot;&gt;&lt;strong&gt;Date:&lt;/strong&gt; Saturday, 11th August 2007, 9:02pm (UTC)&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description>
		</item>
		<item>
			<title>Comment 002</title>
			<link>http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment2</link>
			<description>&lt;p&gt;I put the above code in a file called pp.php and ran it against itself. I&amp;#8217;m probably calling it all wrong but since I didn&amp;#8217;t see any details about running it I assumed it would be the obvious&amp;#8230;&lt;/p&gt;

&lt;p&gt;Anyways it blows up on line 51. I figured you probably want comments.&lt;/p&gt;

&lt;p&gt;13:02:37 [brussel@/ioBin]&amp;gt; ./pp.php pp.php&lt;br&gt;
./pp.php: line 51: syntax error near unexpected token `{echo&amp;#8217;&lt;br&gt;
./pp.php: line 51: `$sc  = &amp;#8216;echo &amp;#8220;1&amp;#8221;;if  (FALSE){echo 2;&amp;#8217;&lt;br&gt;
13:02:42 [brussel@/ioBin]&amp;gt;&lt;/p&gt;
&lt;div class=&quot;comment_credits&quot;&gt;
	&lt;span class=&quot;author line&quot;&gt;&lt;strong&gt;Author:&lt;/strong&gt; &lt;a href=&quot;http://tobyinkster.co.uk/~anonymous/&quot;&gt;Anonymous Coward&lt;/a&gt; &lt;span class=&quot;ip&quot;&gt;[71.128.205.4]&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&lt;span class=&quot;date line&quot;&gt;&lt;strong&gt;Date:&lt;/strong&gt; Saturday, 11th August 2007, 9:12pm (UTC)&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description>
		</item>
		<item>
			<title>Comment 003</title>
			<link>http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment3</link>
			<description>&lt;p&gt;13:02:37 [brussel@/ioBin]&amp;gt; ./pp.php pp.php&lt;br&gt;
./pp.php: line 51: syntax error near unexpected token `{echo&amp;#8217;&lt;br&gt;
./pp.php: line 51: `$sc  = &amp;#8216;echo &amp;#8220;1&amp;#8221;;if  (FALSE){echo 2;&amp;#8217;&lt;br&gt;
13:02:42 [brussel@/ioBin]&amp;gt;&lt;/p&gt;
&lt;div class=&quot;comment_credits&quot;&gt;
	&lt;span class=&quot;author line&quot;&gt;&lt;strong&gt;Author:&lt;/strong&gt; &lt;a href=&quot;http://tobyinkster.co.uk/~dave/&quot;&gt;dave&lt;/a&gt;&lt;/span&gt;&lt;br&gt;
	&lt;span class=&quot;date line&quot;&gt;&lt;strong&gt;Date:&lt;/strong&gt; Saturday, 11th August 2007, 9:13pm (UTC)&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description>
		</item>
		<item>
			<title>Comment 004</title>
			<link>http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment4</link>
			<description>&lt;p&gt;your comment form does not work!&lt;/p&gt;
&lt;div class=&quot;comment_credits&quot;&gt;
	&lt;span class=&quot;author line&quot;&gt;&lt;strong&gt;Author:&lt;/strong&gt; &lt;a href=&quot;http://tobyinkster.co.uk/~dave/&quot;&gt;dave&lt;/a&gt;&lt;/span&gt;&lt;br&gt;
	&lt;span class=&quot;date line&quot;&gt;&lt;strong&gt;Date:&lt;/strong&gt; Saturday, 11th August 2007, 9:14pm (UTC)&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description>
		</item>
		<item>
			<title>Comment 005</title>
			<link>http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment5</link>
			<description>&lt;p&gt;hwbq ueptkxz ognxbcpft dhaeogrp xritnkep poelhc kdbzrfnoc&lt;/p&gt;
&lt;div class=&quot;comment_credits&quot;&gt;
	&lt;span class=&quot;author line&quot;&gt;&lt;strong&gt;Author (Unverified):&lt;/strong&gt; &lt;a href=&quot;http://www.vsoex.wshdvk.com&quot;&gt;uesnw xeatnmp&lt;/a&gt; &lt;span class=&quot;ip&quot;&gt;[172.162.83.202]&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&lt;span class=&quot;date line&quot;&gt;&lt;strong&gt;Date:&lt;/strong&gt; Wednesday, 19th September 2007, 5:08pm (UTC)&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description>
		</item>
		<item>
			<title>Comment 006</title>
			<link>http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment6</link>
			<description>&lt;p&gt; &lt;a href=&quot;http://ybnmkmpf.com&quot;&gt;tpfhvszn&lt;/a&gt;  mwicujho http://jfwpruor.com yqejdctt rqvxacfg  [URL=http://vtecpkjw.com]qmmnanra[/URL]&lt;/p&gt;
&lt;div class=&quot;comment_credits&quot;&gt;
	&lt;span class=&quot;author line&quot;&gt;&lt;strong&gt;Author (Unverified):&lt;/strong&gt; &lt;a href=&quot;http://eowyzijo.com&quot;&gt;lmjdwzmw&lt;/a&gt; &lt;span class=&quot;ip&quot;&gt;[69.94.135.72]&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&lt;span class=&quot;date line&quot;&gt;&lt;strong&gt;Date:&lt;/strong&gt; Saturday, 3rd November 2007, 9:46pm (UTC)&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description>
		</item>
	</channel>
</rss>
