refine php sample a lot