<?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>fritz&#187; PHP listing  &#8211; goto fritz dot net</title>
	<atom:link href="http://blog.gotofritz.net/cat/geekery/web-development/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gotofritz.net</link>
	<description>digital developer and producer, london</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:13:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP optimization tips</title>
		<link>http://blog.gotofritz.net/geekery/web-development/php/php-optimization-tips/</link>
		<comments>http://blog.gotofritz.net/geekery/web-development/php/php-optimization-tips/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 10:08:33 +0000</pubDate>
		<dc:creator>goto</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://blog.gotofritz.net/geekery/web-development/php/php-optimization-tips</guid>
		<description><![CDATA[Here I&#8217;ll collect PHP optimization tips, and will benchmark them when I get to it.

43 Tips for optimizing your php Code
Copied straight from CodingMentor, without testing or benchmarking
1. If a method can be static, declare it static. Speed improvement is by a factor of 4.
2. echo is faster than print.
3. Use echo&#8217;s multiple parameters instead [...]]]></description>
		<wfw:commentRss>http://blog.gotofritz.net/geekery/web-development/php/php-optimization-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly removing empty array elements in PHP</title>
		<link>http://blog.gotofritz.net/geekery/web-development/php/removing-empty-array-elements-in-php/</link>
		<comments>http://blog.gotofritz.net/geekery/web-development/php/removing-empty-array-elements-in-php/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 10:13:05 +0000</pubDate>
		<dc:creator>goto</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.gotofritz.net/geekery/web-development/php/removing-empty-array-elements-in-php</guid>
		<description><![CDATA[A quick way to remove empty elements from an array is using array_filter without a callback function.
$myArray = array_filter( $myArray ); This will also remove 0s though. 
 Alternatively, array_diff allows you to decide which elements to keep:
$myArray = array_diff( $myArray, array( '' ) ); will only remove empty strings, but keep 0.
Both functions leave [...]]]></description>
		<wfw:commentRss>http://blog.gotofritz.net/geekery/web-development/php/removing-empty-array-elements-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using filter_var to validate email addresses in PHP</title>
		<link>http://blog.gotofritz.net/geekery/web-development/php/using-filter_var-to-validate-emails-in-php/</link>
		<comments>http://blog.gotofritz.net/geekery/web-development/php/using-filter_var-to-validate-emails-in-php/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 21:19:55 +0000</pubDate>
		<dc:creator>goto</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.gotofritz.net/geekery/web-development/php/using-filter_var-to-validate-emails-in-php</guid>
		<description><![CDATA[As from version 5.2, PHP comes with built-in data filtering. Which makes validating emails and URL very, very easy.
Validating email addresses in PHP
It couldn&#8217;t be easier than this, could it?
function valid_email( $str=false )	{
&#160;&#160;&#160;&#160;if( !$str )&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return false;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;if( filter_var( $str, FILTER_VALIDATE_EMAIL ) )&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return true;
&#160;&#160;&#160;&#160;}&#160;&#160;&#160;&#160;else&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return false;
&#160;&#160;&#160;&#160;}
}
You can do much more with the new PHP filtering functions, this is [...]]]></description>
		<wfw:commentRss>http://blog.gotofritz.net/geekery/web-development/php/using-filter_var-to-validate-emails-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
