code: public function unserialize($serialized)
      {
          foreach(unserialize($serialized) as $k=>$v)
          {
              $this->$k = $v;
          }
      }
docs: (PHP 5 >= 5.1.0)
  Constructs the object
  @link http://php.net/manual/en/serializable.unserialize.php
  @param string $serialized The string representation of the object.
  @return void