PHP function summarize