Php script to call methods on amfphp service

My php is novice at best. I’m setting up a php script that needs to call a method within an amfphp service file. The method in the service file is passed an argument, then it retrieves a record from the database based on what was passed.

Question is, I know how to include the service file into another php script and call/pass the argument to the amfphp service—but I don’t know how to print/access the record fields/properties once it’s returned… I just need to print them within an XML page.

thanks for any assistance.