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()?
From stackoverflow
-
This is
probablya duplicate of:http://stackoverflow.com/questions/217618/construct-vs-sameasclassname-for-constructor-in-php
Kris : thanks, i didn't find that one.
0 comments:
Post a Comment