On Sun, 12 May 2002, Smileyq wrote:
> [EMAIL PROTECTED] (Kris Vose) wrote:
>> Can you practice function over-loading in php?
>
> No you cannot overload in PHP.
In a particularly masochistic project, we achieved function overloading by
creating a global array $F that linked public to hidden names
Well, not in the procedural sense, but you can do method and property
overloading on objects. See http://php.net/overload
-Rasmus
On Sun, 12 May 2002, Smileyq wrote:
> In article
> <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Kris Vose) wrote:
>
> > Can you practice function over-loading in php?
> > Can you practice function over-loading in php?
>
> No you cannot overload in PHP.
You can achieve the same effect (having the same function do
something else in a different circumstance) by making
parameters optional:
$param1 is required, $param2 is optional - if its not
supplied when the
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Kris Vose) wrote:
> Can you practice function over-loading in php?
>
> Kris
No you cannot overload in PHP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sort of. Look at the extension "overload" in the ext directory of the PHP
source. Enable it and check out the docs:
http://www.php.net/manual/en/ref.overload.php
J
Kris Vose wrote:
> Can you practice function over-loading in php?
>
> Kris
--
PHP General Mailing List (http://www.php.ne
5 matches
Mail list logo