Re: extending a class

From: Date: Thu, 10 Apr 2003 18:11:42 +0000
Subject: Re: extending a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143376@lists.php.net to get a copy of this message
On Thu, 2003-04-10 at 12:59, Dennis Gearon wrote: > Is it possible to extend a class using a variable for the base class? > > I.E. > > $base_class = 'base'; > > class new_class extends $base_class{ > > stuff > > } > class new_class extends $$base_class { stuff } That should work -- Burhan Khalid phplist[at]meidomus[dot]com Please add a reply-to: header in your messages that points to the mailing list address so that all mail is properly archived and viewed.

« previous php.general (#143376) next »