Forum Moderators: coopster
$date = explode("-",mySQLdate);
$day = $date[0];
$month = $date[1];
$year = $date[2];
So basically the explode command needs two things. The thing that separates the parts of the string and the string to break apart. That is stored in an array that I called $date.
Then each part of the date can be assigned to other variables or you can use them as $date[0], $date[1], etc.