class Case {
// class body
}
It's because the "Case" word is reserved by the switch statement? Workarounds? Ideas?
class Case {
// class body
}
It's because the "Case" word is reserved by the switch statement? Workarounds? Ideas?
Because case
is the reserved word.
Reserved words can not be used as constants, function names, class names and etc. Try to avoid that.
PHP has a list of reserved words: http://www.php.net/manual/en/reserved.keywords.php
These can't be used in the way you're trying, ie as constants, class names, function or method names.
No way around it, and no real work arounds. Pear naming convention is OK though, Folder_Folder_Case wouldn't cause any problems.