Re: About PHP Implements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux