<?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: Function Overloading in PHP</title>
	<atom:link href="http://blog.thetonk.com/archives/function-overloading-in-php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thetonk.com/archives/function-overloading-in-php</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 05:59:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jason Coleman</title>
		<link>http://blog.thetonk.com/archives/function-overloading-in-php/comment-page-1#comment-481</link>
		<dc:creator>Jason Coleman</dc:creator>
		<pubDate>Fri, 23 Apr 2010 20:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thetonk.com/?p=511#comment-481</guid>
		<description>I do this all the time in PHP. Often I have a method that say updates a MySQL table. You can pass it an array to update multiple values, or pass it a single string to update just that field.

Also useful on class constructors. Did you pass an integer? Okay, I&#039;ll assume that&#039;s the id and look it up in a table. Did you pass a string? Okay, I&#039;ll just use that data to create the object.

It&#039;s a little janky, but if you comment well...</description>
		<content:encoded><![CDATA[<p>I do this all the time in PHP. Often I have a method that say updates a MySQL table. You can pass it an array to update multiple values, or pass it a single string to update just that field.</p>
<p>Also useful on class constructors. Did you pass an integer? Okay, I&#8217;ll assume that&#8217;s the id and look it up in a table. Did you pass a string? Okay, I&#8217;ll just use that data to create the object.</p>
<p>It&#8217;s a little janky, but if you comment well&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
