update php snippet