PHP: Get a string value from a remote function call.
===

Am new to php. I have a php script running on server1 and another php script on server 2. To make a remote call from server 1 to server2, I use curl functions. As per your posts on 'PHP: Remote Function Call and returning the result?' I can read the string on server2. 

But, my server2 has a function that returns a string value. Now, from server1 I need to get the return value from the function on server2. Could you please let me know how to make a call to a function on the remote server?