2 title: __get() and array rumors
8 There've been lots of rumors about overloaded array properties lately.
25 Notice: Indirect modification of overloaded property funky::$p has no effect
28 As arrays are the only complex types that are passed by value (resources don't
29 really count here) the solution to described problem is simple: use an object;
30 either an instance of stdClass or ArrayObject will do well, depending if you
31 want to use array index notation.
33 So the folloiwng code will work as expected, because the ArrayObject instance
34 will pe passed by handle:
39 function __construct() {
40 $this->p = new ArrayObject;
50 I guess most of you already knew, but anyway... ;)