add php output function
Merge pull request #2 from nojimage/master

Add php output function