title: how to convert object into string in php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/28098/php-tostring-equivalent">PHP ToString() equivalent</a>  </p>
  </blockquote>
  
  
  
  <p>how to convert object into string in php</p>
  
  <p>Actually i am dealing with web service APIs.i want to use output of one API as a input for another API. when i am trying to do this i got error like this:Catchable fatal error: Object of class std could not be converted to string in C:\ ...</p>
  
  <p>this is the output of first API::stdClass Object ( [document_number] => 10ba60 ) now i want only that number to use as input for 2nd AP</p>
  
  <p>print_r and _string() both are not working in my case</p>