php snippet extended