title: how can i access properties defined dynamically inside php class
body: <p>trying to develop a class associated with table(like in frameworks).
  assume we have a class named Book </p>
  
  <pre><code>class Book
  {  
    public function save()
    {
       ....
    }
  
   }
  
  $book = new book;
  $book-&gt;id = '1';
  $book-&gt;name = 'some';
  $book-&gt;save();
  </code></pre>
  
  <p>the problem is how can i access this dynamically created properties inside save() to save new record </p>