I have a script where i need to be able to work out what the last 6 months are, including the year. So for example if its run today, it would get, 03/02, 02/02, 01/02, 12/01, 11/01, 10/01. How would i go about doing this ??
TIA Jamie
Use mktime() to generate a timestamp for the preceding month(s), since mktime() understands stuff like
mktime( 0, 0, 0, $month-1, 0, $year );
Use date() to format your timestamp.