overloading?
| From: | Doug Parker | Date: | Tue, 15 Apr 2003 05:00:58 +0000 |
| Subject: | overloading? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143866@lists.php.net to get a copy of this message | ||
Is there any way to overload in php? I believe that's what I'm looking to do. I want to call a method in my class to print a block of text, with the ability to insert certain variables, rather than the defaults, should I include them in the in function call. For example, I could call:
$object->header(); // for the defaults
or
$object->header("Page Title"); // to replace the default Page Title with the words "Page Title"
is this possible?
any help would be greatly appreciated...