Page 1 of 1
operator overloading
Posted: Sun Feb 29, 2004 3:11 am
by pelegk2
is there operator overloading like in c++?
then how?
thanks in advance
peleg
Posted: Sun Feb 29, 2004 9:23 am
by evilMind
Posted: Sun Feb 29, 2004 12:52 pm
by devork
pelegk2 is asking about operator overloading not method overloading.
in c/c++ user can overload operators like +,-,=,+=,-= (others)
Posted: Mon Mar 01, 2004 12:50 am
by pelegk2
execlly devork -:)
Posted: Mon Mar 01, 2004 12:52 am
by pelegk2
by the way evilMind:
can u explain why in the link u gave me they make all the function with double underscroe?
like :
function __get($key, &$ret)
this answer was given me
Posted: Mon Mar 01, 2004 12:56 am
by pelegk2
an i was told its from the php documentation :
PHP does not support function overloading, nor is it possible to undefine or redefine previously-declared functions