tags:

views:

62

answers:

1

Hello, how I can use array access with my static class? F.e. I like to execute next script:

class A {
   ...
}
A['p'] = 15;
echo isset(A['p']) ? A['p'] : 0;
+5  A: 

The interface ArrayAccess only works for objects. There's nothing similar for static access.

VolkerK