implode('', $_POST); code example Example: php implode in html tags $value = "<span>".implode('</span>,<span>', $values)."</span>";