function display_errors($errors=array()) { $output = ''; if(!empty($errors)) { $output .= "
"; $output .= "Please fix the following errors:"; $output .= ""; $output .= "
"; } return $output; }