<?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>Naqoosh &#187; functions</title>
	<atom:link href="http://www.naqoosh.com/tag/functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.naqoosh.com</link>
	<description>Software Development</description>
	<lastBuildDate>Mon, 28 Jun 2010 05:53:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP&#8217;s empty and isset function</title>
		<link>http://www.naqoosh.com/phps-empty-and-isset-function/</link>
		<comments>http://www.naqoosh.com/phps-empty-and-isset-function/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 05:11:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://nimblecare.wordpress.com/?p=45</guid>
		<description><![CDATA[The best way to check if a variable consists any value or is empty is to use empty function from PHP itself.
$myVar = 0;
if (empty($myVar))
{
echo '$myVar is either 0, empty, or not set at all';
}
Though, while coding in PHP it shouldn&#8217;t be confused with isset which checks if a variable is set or not set, whether [...]]]></description>
			<content:encoded><![CDATA[<p>The best way to check if a variable consists any value or is <a title="empty() documenation" href="http://www.php.net/empty">empty</a> is to use empty function from PHP itself.</p>
<pre name="code" class="php">$myVar = 0;
if (empty($myVar))
{
echo '$myVar is either 0, empty, or not set at all';
}</pre>
<p>Though, while coding in PHP it shouldn&#8217;t be confused with <a title="isset() documenation" href="http://www.php.net/isset">isset</a> which checks if a variable is set or not set, whether that variable is empty.</p>
<pre name="code" class="php">$myVar = 0;
if (isset($myVar))
{
echo '$myVar is set even though it is empty';
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/phps-empty-and-isset-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
