<?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>SEOAnalytic.com official blog &#187; PHP Errors and Warnings</title>
	<atom:link href="http://seoanalytic.com/blog/category/php-errors-and-warnings/feed/" rel="self" type="application/rss+xml" />
	<link>http://seoanalytic.com/blog</link>
	<description>My thoughts about SEO, programming and life maybe ;)</description>
	<lastBuildDate>Mon, 20 Apr 2009 05:41:14 +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>Warning: Invalid argument supplied for foreach()</title>
		<link>http://seoanalytic.com/blog/65/warning-invalid-argument-supplied-for-foreach/</link>
		<comments>http://seoanalytic.com/blog/65/warning-invalid-argument-supplied-for-foreach/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 18:25:33 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[PHP Errors and Warnings]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[php error]]></category>
		<category><![CDATA[php warning]]></category>

		<guid isPermaLink="false">http://seoanalytic.com/blog/?p=65</guid>
		<description><![CDATA[Warning:  Invalid argument supplied for foreach()
If you get this error it means that the &#8220;array&#8221; you&#8217;ve passed to the foreach loop is actually not an array. To check if a variable is an array use the is_array($var) function. But if your variable turns out to be an array, it means then that it is [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Warning</strong>:  Invalid argument supplied for foreach()</p></blockquote>
<p>If you get this error it means that the &#8220;array&#8221; you&#8217;ve passed to the foreach loop is actually not an array. To check if a variable is an array use the <strong>is_array($var)</strong> function. But if your variable turns out to be an array, it means then that it is null or has null elements. To clear an array from null (or empty) elements use the <strong>array_filter($array)</strong> function. You may need to use <strong>array_filter(array(<em>$array</em>))</strong> .</p>
]]></content:encoded>
			<wfw:commentRss>http://seoanalytic.com/blog/65/warning-invalid-argument-supplied-for-foreach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Warning: array_filter() [function.array-filter]: The first argument should be an array</title>
		<link>http://seoanalytic.com/blog/61/warning-array_filter-functionarray-filter-the-first-argument-should-be-an-array/</link>
		<comments>http://seoanalytic.com/blog/61/warning-array_filter-functionarray-filter-the-first-argument-should-be-an-array/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 18:13:32 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[PHP Errors and Warnings]]></category>
		<category><![CDATA[array_filter]]></category>
		<category><![CDATA[php error]]></category>
		<category><![CDATA[php warning]]></category>

		<guid isPermaLink="false">http://seoanalytic.com/blog/?p=61</guid>
		<description><![CDATA[Warning:  array_filter() [function.array-filter]: The first argument should be an array
Even if my variable $kwds was an array, and the function is_array returned true i don&#8217;t know why it still threw a warning. To overpass it, instead of $kwds=array_filter($kwds);  i wrote $kwds=array_filter(array($kwds)); Now it works   I Hope it will help somebody.
]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Warning</strong>:  array_filter() [<a href="http://localhost/browse/search/function.array-filter">function.array-filter</a>]: The first argument should be an array</p></blockquote>
<p>Even if my variable $kwds was an array, and the function <strong>is_array</strong> returned <strong>true </strong>i don&#8217;t know why it still threw a warning. To overpass it, instead of <br />$kwds=array_filter($kwds); <br /> i wrote <br />$kwds=array_filter(<strong>array(</strong>$kwds<strong>)</strong>); <br />Now it works <img src='http://seoanalytic.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I Hope it will help somebody.</p>
]]></content:encoded>
			<wfw:commentRss>http://seoanalytic.com/blog/61/warning-array_filter-functionarray-filter-the-first-argument-should-be-an-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
