PHP Classes

Class Confusion...

Recommend this page to a friend!

      PHP Classes blog  >  Why is it better to d...  >  All threads  >  Class Confusion...  >  (Un) Subscribe thread alerts  
Subject:Class Confusion...
Summary:PHP 4 vs PHP 5, etc.
Author:Bill Koerner
Date:2012-03-21 18:12:00
Update:2012-03-21 22:38:25

  1. Class Confusion...   Reply   Report abuse  
Bill Koerner - 2012-03-21 20:33:53

Thanks for the article, it helps because I understand OOP, and have seen some use in PHP coding, but I never had the time to understand the semantics of using the classes.

Also, I have a website that, I believe, is still running PHP 4.3, and I know that classes won't work on that version, or is severly limited(?). I remember trying to use some of the sample classes on the PHPClasses site, but had to either butcher them or give up because the functionality wasn't supported.

I also dabble with the PHP-Nuke CMS for my website, and this has me thinking about whether the current version really uses classes, or if it would make sense to figure out how to convert the global variables into classes... How familiar are you with PHP-Nuke?

  2. Re: Class Confusion...   Reply   Report abuse  
Manuel Lemos - 2012-03-21 22:38:25 - In reply to message 1 from Bill Koerner
Classes work since PHP 3. What you may have found are some classes that require PHP 5 features, and so they do not work on PHP 4.

I have not seen PHP-Nuke code. It is a very old system. It may use classes but probably nothing that requires newer PHP versions that did not exist when it was created or updated for the last time.