Re: overloading?
| From: | Jason Wong | Date: | Tue, 15 Apr 2003 06:47:32 +0000 |
| Subject: | Re: overloading? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143871@lists.php.net to get a copy of this message | ||
On Tuesday 15 April 2003 13:00, Doug Parker wrote:
> 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?
manual > Functions > Function arguments
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I would rather say that a desire to drive fast sports cars is what sets
man apart from the animals.
*/