Need to create and use a class named & ldquo; Array & rdquo; but can not


Is there any way to create and use a class named "Array" in PHP? So far, it seems to cause a name conflict with array programming construct, which is not a class.

The class documentation states:

The class name can be any valid label which is not a PHP reserved word.

Array is a reserved word and, thus, you cannot. PHP has no way (AFAIK) to "escape" these words. Also see this answer.

You need to name your class more specifically (like MyArray or AnimalList).