overlading constructor and functions in PHP 4
- From: "joes" <joes@xxxxxxxxxx>
- Date: 1 Oct 2005 17:43:24 -0700
Hello
I am a php newbie... I like to overload a function in php (as like in
other oo languages). I didn't get this working. Is an overaloding in
php not possible? What is about the funtion "overlaod()" in php would
this be the trick?
class Base
{
function test()
{}
function test($param1)
{}
}
This would end in the error:
"Fatal error: Cannot redeclare Base: test() in Base.php ..."
Thanks in advance for any comments
regards
Mark Egloff
.
- Follow-Ups:
- Re: overlading constructor and functions in PHP 4
- From: Schraalhans Keukenmeester
- Re: overlading constructor and functions in PHP 4
- Prev by Date: put a lot of items in a shopping cart at once
- Next by Date: Re: overlading constructor and functions in PHP 4
- Previous by thread: put a lot of items in a shopping cart at once
- Next by thread: Re: overlading constructor and functions in PHP 4
- Index(es):
Relevant Pages
|