Added php functionality. 

Ps: Great story.