phpre snippet