NYCPHP Meetup

NYPHP.org

[nycphp-talk] Method overloading

Ben Sgro ben at projectskyline.com
Fri Dec 14 14:20:02 EST 2007


Hello,

Reading a java book on OOP, I wanted to do this in php:

class foo
{
    public function bar($string){...}
    public function bar($string, $int, $array) {...}
}


It should provide different "signatures" and allow method overloading...
Why not in php?

Is that not built in?

- Ben



More information about the talk mailing list