I’m looking to create a class called a List, seems simple enough right? Not to the trained eye! I’m working in PHP 5.3.1, and due to the fact that there is already a class or keyword called a List, I am incapable of creating a class with this name. Any suggestions/workarounds? Preferably something other than a different naming convention?
Share
List is a keyword. You cannot use it as a class name. There is no workaround short of hacking apart PHP’s source code.