Does PHP allow class functions & properties to share the same name?

Paulgeinhilla

New Member
An old colleague of mine wrote this in our code:\[code\]public function paginate() { return $this->paginate;}\[/code\]And I was wondering: does this return the function paginate() or the class property $paginate?I'm guessing the latter, but it is strange that I haven't found any information on this subject.
 
Back
Top