Re: PHP4 vs PHP5 classes
| From: | Chris | Date: | Wed, 30 Jul 2008 03:04:53 +0000 |
| Subject: | Re: PHP4 vs PHP5 classes | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277450@lists.php.net to get a copy of this message | ||
> Don't forget that in PHP5, the constructor named has changed. In PHP4
> it called a method with the same name as the class. But, in PHP5, it
> looks for __construct() instead.
If __construct doesn't exist then it falls back to the php4 way - makes
it backwards compatible :)
--
Postgresql & php tutorials
http://www.designmagick.com/