PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
pelegk2
Forum Regular
Posts: 633 Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:
Post
by pelegk2 » Sun Feb 29, 2004 3:11 am
is there operator overloading like in c++?
then how?
thanks in advance
peleg
evilMind
Forum Contributor
Posts: 145 Joined: Fri Sep 19, 2003 10:09 am
Location: Earth
Post
by evilMind » Sun Feb 29, 2004 9:23 am
devork
Forum Contributor
Posts: 213 Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network
Post
by devork » Sun Feb 29, 2004 12:52 pm
pelegk2 is asking about operator overloading not method overloading.
in c/c++ user can overload operators like +,-,=,+=,-= (others)
pelegk2
Forum Regular
Posts: 633 Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:
Post
by pelegk2 » Mon Mar 01, 2004 12:50 am
execlly devork -:)
pelegk2
Forum Regular
Posts: 633 Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:
Post
by pelegk2 » Mon Mar 01, 2004 12:52 am
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)
pelegk2
Forum Regular
Posts: 633 Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:
Post
by pelegk2 » Mon Mar 01, 2004 12:56 am
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