i’m not so hot with my php.
i was wondering if you could help me, i’m trying to create an array that contains the last 31 dates. e.g.
$dates = array("2011-03-22", "2011-03-21", "2011-03-20", "2011-03-19", ........... "2011-02-22");
any pointers appreciated 🙂
thanks
alsweet
Using the DateTime object, its fairly straight forward. (Available from PHP 5.2 onwards).