Mega Code Archive

 
Categories / Php / Data Type
 

Consider the following block of code

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;   ?>