Ho sentito che è possibile salvare un file con estensione html pur avendo all'interno codice php?

Qualcuno sa dirmi come?