Php Function or Method Overloading?
| From: | admin at atillailhankartal dot com dot tr | Date: | Wed, 29 Apr 2009 08:12:45 +0000 |
| Subject: | Php Function or Method Overloading? | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4564@lists.php.net to get a copy of this message | ||
Dear Phpnet Web Masters;
First I am sorry for my english. I need help for overloading. I have
a php class and this class have six method but this methods for a single
process. I need overlading methods.
C#.NET syntax overlading
namespace HaberService
{
class test
{
public void test() {
Console.WriteLine("bla bla bla");
}
public void test(string name) {
Console.WriteLine(name + " bla bla bla");
}
public void test(string name, int age) {
Console.WriteLine(name + " is "+ age +" years old bla bla
bla");
}
}
}
i want to method overloading C#.net syntax with php? is it possible?
Atilla ilhan KARTAL
Web Application & Software Architect