Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ilia Alshanetsky's Blog:
PDO Constructor Overloading
Sep 20, 2005 @ 21:20:07

Ilia Alshanetsky has a quick new post on his blog today that talks about the new PDO constructor overloading he just introduced.

As of few minutes ago PDO extension allows constructor overloading, which is something a lot of people had asked for. Keep in mind that if you don't call the original PDO constructor via parent::__construct() an error will be generated, so exercise caution when using this feature.

Definitely a handy little feature to have for the constructor...

tagged:

Link:


Trending Topics: