You don't integrate the policy into PHP. PHP is a programming language. You can implement a p3p policy in your web site, which may be largely generated by PHP scripts.
I didn't read it, but this seems useful:
http://p3ptoolbox.org/guide/
Take care,
Nik
http://www.bigaction.org/