<?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>php tricks &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/php-tricks/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>The Better Way to Unset Variables in PHP</title>
		<link>/2010/09/03/the-better-way-to-unset-variables-in-php/</link>
		<comments>/2010/09/03/the-better-way-to-unset-variables-in-php/#respond</comments>
		<pubDate>Fri, 03 Sep 2010 09:42:31 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Computer programming]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Human Interest]]></category>
		<category><![CDATA[Parameter]]></category>
		<category><![CDATA[php functions]]></category>
		<category><![CDATA[PHP programming language]]></category>
		<category><![CDATA[php tricks]]></category>
		<category><![CDATA[Scripting languages]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Unset]]></category>
		<category><![CDATA[unset in php]]></category>

		<guid isPermaLink="false">/?p=1953</guid>
		<description><![CDATA[Don&#8217;t know why, but most of times I see the PHP unset() multilined with a only one parameter!? unset($var1); unset($var2); unset($var3); But as you can see from the PHP doc page of unset() this method takes optional parameter count. void unset(mixed $var [, mixed $var [, mixed $...]]) So perhaps a better solution can be: &#8230; <a href="/2010/09/03/the-better-way-to-unset-variables-in-php/" class="more-link">Continue reading <span class="screen-reader-text">The Better Way to Unset Variables in PHP</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/06/11/friday-algorithms-quicksort-difference-between-php-and-javascript/" rel="bookmark" title="Friday Algorithms: Quicksort &#8211; Difference Between PHP and JavaScript">Friday Algorithms: Quicksort &#8211; Difference Between PHP and JavaScript </a></li>
<li><a href="/2010/05/19/php-associative-arrays-coding-style/" rel="bookmark" title="PHP Associative Arrays Coding Style">PHP Associative Arrays Coding Style </a></li>
<li><a href="/2011/10/19/thing-to-know-about-php-arrays/" rel="bookmark" title="Thing to Know About PHP Arrays">Thing to Know About PHP Arrays </a></li>
<li><a href="/2011/10/27/object-cloning-and-passing-by-reference-in-php/" rel="bookmark" title="Object Cloning and Passing by Reference in PHP">Object Cloning and Passing by Reference in PHP </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Don&#8217;t know why, but most of times I see the PHP unset() multilined with a only one parameter!?</p>
<pre lang="php">unset($var1);
unset($var2);
unset($var3);
</pre>
<p>But as you can see from the PHP <a title="doc page of unset()" href="http://php.net/manual/en/function.unset.php" target="_blank">doc page of unset()</a> this method takes optional parameter count.</p>
<pre lang="php">void unset(mixed $var [, mixed $var [, mixed $...]])
</pre>
<p>So perhaps a better solution can be:</p>
<pre lang="php">unset($var1, $var2, $var3);
</pre>
<p>It&#8217;s at least single lined!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/06/11/friday-algorithms-quicksort-difference-between-php-and-javascript/" rel="bookmark" title="Friday Algorithms: Quicksort &#8211; Difference Between PHP and JavaScript">Friday Algorithms: Quicksort &#8211; Difference Between PHP and JavaScript </a></li>
<li><a href="/2010/05/19/php-associative-arrays-coding-style/" rel="bookmark" title="PHP Associative Arrays Coding Style">PHP Associative Arrays Coding Style </a></li>
<li><a href="/2011/10/19/thing-to-know-about-php-arrays/" rel="bookmark" title="Thing to Know About PHP Arrays">Thing to Know About PHP Arrays </a></li>
<li><a href="/2011/10/27/object-cloning-and-passing-by-reference-in-php/" rel="bookmark" title="Object Cloning and Passing by Reference in PHP">Object Cloning and Passing by Reference in PHP </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/09/03/the-better-way-to-unset-variables-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
