<?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 Basics: Advanced function</title>
	<atom:link href="http://www.weez.com/2010/03/php-basics-advanced-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weez.com/2010/03/php-basics-advanced-function/</link>
	<description>Solving everyday practical LAMP problems... one at a time</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:54:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: chjustin69</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3788</link>
		<dc:creator>chjustin69</dc:creator>
		<pubDate>Sun, 07 Mar 2010 15:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3788</guid>
		<description>Oh cool, the return command is pretty neat!  Now you can only return one value to the function right?</description>
		<content:encoded><![CDATA[<p>Oh cool, the return command is pretty neat!  Now you can only return one value to the function right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chjustin69</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3787</link>
		<dc:creator>chjustin69</dc:creator>
		<pubDate>Sun, 07 Mar 2010 15:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3787</guid>
		<description>If your like me and like to write a little code after each tut than a &quot;challenge&quot; you can do is to write a calc with all the same functions as above but with less code (you can do it with what we have learned so far!)</description>
		<content:encoded><![CDATA[<p>If your like me and like to write a little code after each tut than a &#8220;challenge&#8221; you can do is to write a calc with all the same functions as above but with less code (you can do it with what we have learned so far!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: olie04</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3786</link>
		<dc:creator>olie04</dc:creator>
		<pubDate>Sun, 07 Mar 2010 15:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3786</guid>
		<description>Can RETURN be substituted by ECHO in functions? or does it have to be RETURN all the time in functions.</description>
		<content:encoded><![CDATA[<p>Can RETURN be substituted by ECHO in functions? or does it have to be RETURN all the time in functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phpacademy</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3785</link>
		<dc:creator>phpacademy</dc:creator>
		<pubDate>Sun, 07 Mar 2010 15:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3785</guid>
		<description>Yes, you can echo it out directly from inside a function.However it&#039;s better to leave it as a RETURN and then echo it out as you require. Reason being you might want to use the function to do something else later on (i.e. string length) so in this case having it ECHO out as standard won&#039;t work.</description>
		<content:encoded><![CDATA[<p>Yes, you can echo it out directly from inside a function.However it&#8217;s better to leave it as a RETURN and then echo it out as you require. Reason being you might want to use the function to do something else later on (i.e. string length) so in this case having it ECHO out as standard won&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: labandus</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3784</link>
		<dc:creator>labandus</dc:creator>
		<pubDate>Sun, 07 Mar 2010 14:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3784</guid>
		<description>is not possible to define right $total in the function, and then  in each &quot;case&quot; of switch, give the value of the choosen operationen.

At the end we just &quot;return $total&quot; at the end of the function. 

This can spare us define a new &quot;$total&quot; variable in each case.</description>
		<content:encoded><![CDATA[<p>is not possible to define right $total in the function, and then  in each &#8220;case&#8221; of switch, give the value of the choosen operationen.</p>
<p>At the end we just &#8220;return $total&#8221; at the end of the function. </p>
<p>This can spare us define a new &#8220;$total&#8221; variable in each case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gigman7</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3783</link>
		<dc:creator>gigman7</dc:creator>
		<pubDate>Sun, 07 Mar 2010 14:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3783</guid>
		<description>What is the difference in  using the &quot;switch&quot; and &quot;case&quot; statements and using if else statements?</description>
		<content:encoded><![CDATA[<p>What is the difference in  using the &#8220;switch&#8221; and &#8220;case&#8221; statements and using if else statements?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrWestofReanimation</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3782</link>
		<dc:creator>DrWestofReanimation</dc:creator>
		<pubDate>Sun, 07 Mar 2010 13:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3782</guid>
		<description>If -n-else statements are mostly for control statements, switch statements are using mutiple decision statements for a user can select from.  Case is specifing the condition you are chosing. You can say case or switch statement, but you have to speific switch() { case &quot;&quot;: } .</description>
		<content:encoded><![CDATA[<p>If -n-else statements are mostly for control statements, switch statements are using mutiple decision statements for a user can select from.  Case is specifing the condition you are chosing. You can say case or switch statement, but you have to speific switch() { case &#8220;&#8221;: } .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gigman7</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3781</link>
		<dc:creator>gigman7</dc:creator>
		<pubDate>Sun, 07 Mar 2010 13:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3781</guid>
		<description>You&#039;ve lost me.  I&#039;m not sure I understand the advantage of using one over the other.</description>
		<content:encoded><![CDATA[<p>You&#8217;ve lost me.  I&#8217;m not sure I understand the advantage of using one over the other.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrWestofReanimation</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3780</link>
		<dc:creator>DrWestofReanimation</dc:creator>
		<pubDate>Sun, 07 Mar 2010 12:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3780</guid>
		<description>Ideally* -not all, feels like it matter which one should be use-, programmer should use switch-case if he/she have more questions for the end-user to make;such as, menu-base feature, and If/else statements need to use when simple decisions or data control for your program.</description>
		<content:encoded><![CDATA[<p>Ideally* -not all, feels like it matter which one should be use-, programmer should use switch-case if he/she have more questions for the end-user to make;such as, menu-base feature, and If/else statements need to use when simple decisions or data control for your program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mega3a4ot</title>
		<link>http://www.weez.com/2010/03/php-basics-advanced-function/comment-page-1/#comment-3779</link>
		<dc:creator>mega3a4ot</dc:creator>
		<pubDate>Sun, 07 Mar 2010 12:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.weez.com/2010/03/php-basics-advanced-function/#comment-3779</guid>
		<description>It&#039;s alright but why do you return $total 4 times instead of using it once in the end of the function?</description>
		<content:encoded><![CDATA[<p>It&#8217;s alright but why do you return $total 4 times instead of using it once in the end of the function?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

