views:

327

answers:

1

Hey, I just started pondering this and figured I could use some input.

I've long been using '__construct()' for all my constructor needs in php5, even though the obviously better looking 'ClassName()' would work just as well. I remember switching to __construct because it would forcibly break on older php installations but I don't think that's a requirement anymore.

My question is: What are some good reasons to either stick with __construct() or go with ClassName()?

A: 

This is probably a duplicate of:

http://stackoverflow.com/questions/217618/construct-vs-sameasclassname-for-constructor-in-php

Tomalak
thanks, i didn't find that one.
Kris