i think this does about everything u asked for, so play around with this for a bit
$months = array("january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december");
$whatever = "the current month is november, and the current year is 2000";
for($i = 0; $i < count($months); $i++){
if(strpos($whatever, $months[$i]) != ""){
$year = substr($whatever, strlen($whatever) - 4, 4);
print "$months[$i]";
}
}