Update php snippet