What you're saying here is beyond my understanding I thnk. So this allows a remote program to call a PHP function and receive data without searching through the HTML or something?
I was thinking XML could be used eventually, it shouldn't be too hard to parse and can be styled for the webpage, so a 2-in-1 kind of format.