I can see in PHP 5.3.2 there is an ArrayObject class. Is it possible to declare a new object named Array
that extends the ArrayObject. But Im not sure if ‘Array‘ is a reserved keyword or should I use my own prefix i.e XArray(), MyArray etc…
What I would like to have is
class Array extends ArrayObject {
...my own code
}
All you’d have to do is try to run:
And you’d see:
So the answer is, no, you cannot. You’ll need to use a different name.