I need to be able to add 7 date to an already formatted date.
I have a variable:
$holiday has a value of Wednesday 1st of January (for example);
I am tryng to add 7 days to this result so the output would be 8th of January but this fails, the code i use is as follows
if (strpos($holiday,'1st') && strpos($holiday,'January') == true) {$result = date("l jS \of F", strtotime( $holiday. "+ 7 day" ));}
No errors in php log