Philippine Peso ( Philippine Piso ng Pilipinas) ( ISO code 4217 : PHP) is the official currency of the Philippines .