All you need to do is add “&” in front of your __get function to pass it as reference:
public function &__get ( $index )
Struggled with this one for a while.
All you need to do is add “&” in front of your __get function to pass it as reference:
public function &__get ( $index )
Struggled with this one for a while.