PHP Classes

Dynamic setter does not work

Recommend this page to a friend!

      Array to Object converter  >  All threads  >  Dynamic setter does not work  >  (Un) Subscribe thread alerts  
Subject:Dynamic setter does not work
Summary:Does not work with php 5.2.9
Messages:2
Author:Tom Schaefer
Date:2009-04-19 08:17:38
Update:2009-04-19 08:28:58
 

  1. Dynamic setter does not work   Reply   Report abuse  
Picture of Tom Schaefer Tom Schaefer - 2009-04-19 08:17:38
Nice, but doesnot work.

Just change lines 106 to 111.


public function __set($key, $value)
{
$this->$key = $value;
$this->_variablesCount++;
}


  2. Re: Dynamic setter does not work   Reply   Report abuse  
Picture of Sebastian Potasiak Sebastian Potasiak - 2009-04-19 08:28:59 - In reply to message 1 from Tom Schaefer
Ok, thanks.
Updated.