string implode ( string glue, array pieces ) array explode ( string separator, string string [, int limit] ) <?php //Break the string into an array. $expdate = explode ("-","1979-06-23"); echo $expdate[0] . ","; //Then pull it back together into a string. $fulldate = implode ("-", $expdate); echo $fulldate; ?>