Re: Class constructors

From: Date: Thu, 13 Jul 2000 16:19:16 +0000
Subject: Re: Class constructors
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24463@lists.php.net to get a copy of this message
On Thu, 13 Jul 2000, Oriol Prat Gomez wrote: > Hello, > I'm developing a module for PHP and I have not found the way to implement > a class constructor. I have seen a class destructor definition but no a > constructor class. > There's a way to implement it? Simply create a function that has the same name as that of your class. It will be called upon class instanciation. -Andrei "The galaxy is, in other words, an immensely, intrinsically, and inexhaustibly interesting place." -- Iain M. Banks

« previous php.dev (#24463) next »