T K wrote:
Hi, I would like to use constructor in PHP4, but how do you make a constructor?
Name the function the same as the class. class ABC { function ABC() { //constructor in php4 $this->__construct(); // just call the php5 one. } function __construct() { //constructor in php5. } } -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php