$string = "17/04/2004";
I want to split it up into:
$day, $month and $year.
You can probably use the date-time functions but that's outa my league at present.
You can do this by using the substring function:
$day = "substr($string, 1, 2)";
$month = "substr($string, 4, 2)";
$year = "substr($string, 7, 4)";
To do it this way you do need to be sure that all your days and months are two-digits. If not you can use other string functions, such as strchr(), to sort out your variables from their location relative to the slashes.
Cheers
Dougal