How to convert a PHP object to a string?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/28098/php-tostring-equivalent">PHP ToString() equivalent</a>  </p>
</blockquote>



<p>I get this error:</p>

<pre><code>Catchable fatal error: Object of class stdClass could not be converted to string
</code></pre>

<p>So, my question is, how do I convert an object to a string in PHP? I don't want to serialize it though.</p>

<p>Just a note: the code I use works in PHP 4, but not in PHP 5</p>

<p>Thanks!</p>

<p>EDIT: I resolved it myself. It was a pain, but I did it. Thanks anyway, everyone :-)</p>
