<?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://wakeless.net/archive/2005/04/function-overloading-in-php/feed" rel="self" type="application/rss+xml" />
	<link>http://wakeless.net/archive/2005/04/function-overloading-in-php</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 07:04:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Igor Cemim</title>
		<link>http://wakeless.net/archive/2005/04/function-overloading-in-php/comment-page-1#comment-1243</link>
		<dc:creator>Igor Cemim</dc:creator>
		<pubDate>Fri, 30 Jul 2010 21:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://wakeless.net/wordpress/?p=59#comment-1243</guid>
		<description>Thanks. ^^</description>
		<content:encoded><![CDATA[<p>Thanks. ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esther Cruz</title>
		<link>http://wakeless.net/archive/2005/04/function-overloading-in-php/comment-page-1#comment-809</link>
		<dc:creator>Esther Cruz</dc:creator>
		<pubDate>Wed, 12 Nov 2008 23:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://wakeless.net/wordpress/?p=59#comment-809</guid>
		<description>ue01hucnd3dkil35</description>
		<content:encoded><![CDATA[<p>ue01hucnd3dkil35</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marl Atkins</title>
		<link>http://wakeless.net/archive/2005/04/function-overloading-in-php/comment-page-1#comment-404</link>
		<dc:creator>Marl Atkins</dc:creator>
		<pubDate>Sun, 27 Jan 2008 08:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://wakeless.net/wordpress/?p=59#comment-404</guid>
		<description>Hmm, what if I want to use the overloaded call in the overloading class?
I can do this is C# and Java:

In this case I&#039;m really doing both an overload AND an override.
That is, the second class uses the name of a function that is also included in the class that it extends, but the number of arguments are not the same.

I fear this is going to be a nightmare in php.
I&#039;ve seen some code that uses args[] to kind of simulate it.

Any ideas?
[code]
class Overloaded
{
function OverLoadMe($sVal1, $sVal2)
{
return $sVal1 . $sVal2
}
}

class OverLoader extends Overloaded
{
$sVal1 = &quot;I got this internally, maybe from a database&quot;;
function OverLoadMe($sVal2)
{
return this-&gt;OverLoadMe($sVal1, $sVal2);
}
}
[/code]

&lt;a href=&quot;http://www.softlinksys.com&quot; rel=&quot;nofollow&quot;&gt;Florida Web Design, Inc. of Orlando&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hmm, what if I want to use the overloaded call in the overloading class?<br />
I can do this is C# and Java:</p>
<p>In this case I&#8217;m really doing both an overload AND an override.<br />
That is, the second class uses the name of a function that is also included in the class that it extends, but the number of arguments are not the same.</p>
<p>I fear this is going to be a nightmare in php.<br />
I&#8217;ve seen some code that uses args[] to kind of simulate it.</p>
<p>Any ideas?<br />
[code]<br />
class Overloaded<br />
{<br />
function OverLoadMe($sVal1, $sVal2)<br />
{<br />
return $sVal1 . $sVal2<br />
}<br />
}</p>
<p>class OverLoader extends Overloaded<br />
{<br />
$sVal1 = "I got this internally, maybe from a database";<br />
function OverLoadMe($sVal2)<br />
{<br />
return this-&gt;OverLoadMe($sVal1, $sVal2);<br />
}<br />
}<br />
[/code]</p>
<p><a href="http://www.softlinksys.com" rel="nofollow">Florida Web Design, Inc. of Orlando</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

