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
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