Does anyone know how to string a group of arrays into a single variable? I am trying to covert the a date format into another format, but i need to string to the arrays.
$datetochange="2008-11-5"; $date_parts=explode("-", $datetochange);
//Displays 2008 print $date_parts[0];
//Displays 11 print $date_parts[1];
//Displays 5 print $date_parts[2];
//Stringing the Arrays together $dateData = $date_parts1[0] + $date_parts1[2] +$date_parts1[1];
I want end results to be: "2008-5-11" But I do not know how to string the variables together, can anyone help?