how to convert object into string in php
<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>
