Use arrayaccess with static class

Posted by user308776 on Stack Overflow See other posts from Stack Overflow or by user308776
Published on 2010-04-04T16:58:03Z Indexed on 2010/04/04 17:03 UTC
Read the original article Hit count: 119

Filed under:
|
|

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

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

© Stack Overflow or respective owner

Related posts about php

Related posts about array