<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP: Check For An Empty Value In An Array</title>
	<atom:link href="http://www.tiglo.co.uk/php-check-for-an-empty-value-in-an-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tiglo.co.uk/php-check-for-an-empty-value-in-an-array/</link>
	<description>Tiglo's thoughts and random other stuff.</description>
	<lastBuildDate>Sun, 13 Dec 2009 18:44:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andy</title>
		<link>http://www.tiglo.co.uk/php-check-for-an-empty-value-in-an-array/comment-page-1/#comment-17173</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 28 Mar 2009 21:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.tiglo.co.uk/technology/internet/php-check-for-an-empty-value-in-an-array.html#comment-17173</guid>
		<description>Superb... I&#039;m still new to PHP and have been scratching my head on this one for a while. Thanks a lot!!</description>
		<content:encoded><![CDATA[<p>Superb&#8230; I&#8217;m still new to PHP and have been scratching my head on this one for a while. Thanks a lot!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://www.tiglo.co.uk/php-check-for-an-empty-value-in-an-array/comment-page-1/#comment-3231</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Tue, 11 Nov 2008 05:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tiglo.co.uk/technology/internet/php-check-for-an-empty-value-in-an-array.html#comment-3231</guid>
		<description>checkforemptyval($array) is really clever. I have been doing insanely long,  
if (!$_POST[&#039;email&#039;] &#124; !$_POST[&#039;confirm_email&#039;] &#124; !$_POST[&#039;password&#039;] &#124; !$_POST[&#039;confirm_password&#039;] &#124; 
	!$_POST[&#039;firstname&#039;] &#124; !$_POST[&#039;lastname&#039;]&#124; !$_POST[&#039;address&#039;] &#124; !$_POST[&#039;city&#039;] &#124; !$_POST[&#039;state&#039;] &#124; 
	!$_POST[&#039;zip&#039;]&#124; !$_POST[&#039;phone&#039;]) 

statements. Until now.  thanks Paul</description>
		<content:encoded><![CDATA[<p>checkforemptyval($array) is really clever. I have been doing insanely long,<br />
if (!$_POST['email'] | !$_POST['confirm_email'] | !$_POST['password'] | !$_POST['confirm_password'] |<br />
	!$_POST['firstname'] | !$_POST['lastname']| !$_POST['address'] | !$_POST['city'] | !$_POST['state'] |<br />
	!$_POST['zip']| !$_POST['phone']) </p>
<p>statements. Until now.  thanks Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santhosh Palan</title>
		<link>http://www.tiglo.co.uk/php-check-for-an-empty-value-in-an-array/comment-page-1/#comment-2470</link>
		<dc:creator>Santhosh Palan</dc:creator>
		<pubDate>Thu, 24 Jul 2008 08:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tiglo.co.uk/technology/internet/php-check-for-an-empty-value-in-an-array.html#comment-2470</guid>
		<description>Here is a function, which returns a array with non-empty elements/items :

function removeEmpty($rawArray)
{
	$arrayindex=0;
	$cleanArray=Array();
	foreach($rawArray as $val)
	{
		if(!empty($val))
		{
		$cleanArray[$arrayindex]=$val;					
		$arrayindex++;
		}
	
	}
	
	return($cleanArray);
}</description>
		<content:encoded><![CDATA[<p>Here is a function, which returns a array with non-empty elements/items :</p>
<p>function removeEmpty($rawArray)<br />
{<br />
	$arrayindex=0;<br />
	$cleanArray=Array();<br />
	foreach($rawArray as $val)<br />
	{<br />
		if(!empty($val))<br />
		{<br />
		$cleanArray[$arrayindex]=$val;<br />
		$arrayindex++;<br />
		}</p>
<p>	}</p>
<p>	return($cleanArray);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
