If I\'ve got a date string:
$date = \"08/20/2009\";
And I want to separate each part of the date:
$m = \"08\"; $d = \"20\";
Check out PHP's date_parse function. Unless you're sure input will always be in a consistent format, AND you validate it first, it is much more stable and flexible, (not to mention easier), to let PHP try to parse the format for you.
e.g.