note 44486 added to language.oop5.decon
| From: | muha at osu1 dot php dot net | Date: | Sat, 07 Aug 2004 15:46:44 +0000 |
| Subject: | note 44486 added to language.oop5.decon | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74145@lists.php.net to get a copy of this message | ||
To write a class that is compatible to PHP 4 and PHP 5 just call the __construct() function from the
ClassName() function.
<?php
class MyClass
{
function __construct()
{
...
}
function MyClass()
{
$this->__construct();
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44486
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44486&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44486&report=yes
Search -- http://master.php.net/manage/user-notes.php