I have some pages that require a date to be set in the future (either 2 or 5 days as set by a variable).
This date needs to be only counting Monday - Friday, excluding weekends.
What I have so far ($tts is the variable of 2 or 5 depending on page);
$Today = date('N:m:y');
$NewDate = date('l \t\h\e jS \o\f F',strtotime($Today) + (24*3600*$tts));
$businessDays = [1, 2, 3, 4, 5];
$plusFive = strtotime( '+5 weekday' ); $plusFive = date( 'Y-m-d', $plusFive );
strtotime also takes a second parameter which could be the base for the +5.