2016-02-24

@davidtsadler

Version: 002

Usage:

getDays();

Results:
Sun, Dec 25th 2016
Wed, Dec 28th 2016
Sat, Dec 31st 2016

Usage:

getDays($str = '2016-02-01', 42, $aDays = ['Mon','Thu','Fri'],'Y M D jS');

2016 Feb Mon 1st
2016 Feb Thu 4th
2016 Feb Fri 5th
2016 Feb Mon 8th
2016 Feb Thu 11th
2016 Feb Fri 12th
2016 Feb Mon 15th
2016 Feb Thu 18th
2016 Feb Fri 19th
2016 Feb Mon 22nd
2016 Feb Thu 25th
2016 Feb Fri 26th
2016 Feb Mon 29th

[off topic]
It took me longer to format the post than it did write the function

Edit:
Added optional formatting parameter to function

Show more