There is documentation on the php website about how to install php with various versions of IIS.
Like most server applications, Microsoft designed IIS to be extensible. You configure IIS to recognize the .php extension in a similar manner as you do for apache.
Stupid Question about PHP on IIS Server
Moderator: General Moderators