Is this possible within PHP:

1. User fills in form on my site
2. The form submits the data from the form to a third-party server somewhere else on the net, essentially handing off the data to the third-party server somehow
3. Said third-party server does something with the data and then generates a numerical value to send back to my PHP script
4. My server/PHP script gets that numerical value/data for use in the script again

Is it doable in PHP? Does PHP have inbuilt functions to perform the above tasks? Would such a thing require tons of advanced code or is it relatively easy to do?

Thanks in advance for any help on the matter