//error_reporting(E_ALL); //ini_set('display_errors', 1); echo "<p>Original:<br/>".$_GET['input']."</p>"; $pieces = explode(",", $_GET['input']); $result = array_unique($pieces); echo "<p>Updated:<br/>"; foreach($result as $print) { echo "$print,"; } echo "</p>";
Last Updated on October 26, 2015