Re: About PHP Implements

From: Date: Tue, 18 Dec 2007 22:45:41 +0000
Subject: Re: About PHP Implements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266051@lists.php.net to get a copy of this message
Jim Webber wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do "implements" on classes. Is there an analogous way to do this without PHP5 installed?
If you're using inheritance and child classes you could do it in a way, eg: class parent_class { function x() {
    echo 'You need to override this fn in your child class';
} } -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#266051) next »