title: php 5.1.6 magic __toString method
body: <p>In codeigniter Im trying to use <a href="http://www.overzealous.com/dmz/pages/extensions/htmlform.html" rel="nofollow noreferrer">this</a> plugin which requires I implement a toString method in my models. My toString method simply does</p>
  
  <pre><code>public function __toString()
  {
      return (string)$this-&gt;name;
  }
  </code></pre>
  
  <p>On my local machine with php 5.3 everything works just fine but on the production server with php 5.1.6 it shows "Object id#48" where the value of the name property of that object should appear..... I found something about the <a href="http://www.jcinacio.com/2007/04/19/phps-__tostring-magic-method-not-so-magic-before-520/" rel="nofollow noreferrer">problem here</a> but I still dont understand... How can I fix this?</p>