Why I can't create a class named "Case" on PHP -


class case { // class body } 

it's because "case" word reserved switch statement? workarounds? ideas?

because case reserved word.

reserved words can not used constants, function names, class names , etc. try avoid that.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -