Printing with PHP,HELP!

Hi guys, I have no idea about the PHP syntax or what it can do.
I hope to get some help here cause the thing i am trying to do i simple and i hope it is possible in PHP.

I want to send a string through Flash containing <html> tags to a PHP function and want PHP to parse the tags and send it to the printer?

Is this possible, if yes how? and if no, how can i achieve this?