Update php method