I am trying to add $input
to my $output
mktime string but it just returns the date today not the date +2 days (eg 2 days ahead) as desired. Can anyone help my with this please?
$input = '+2';
$output = date('j',mktime(0,0,0,date('j'), date('d'), $input ,date('Y')));
I have also tried
$input = +2;
$output = date('j',mktime(0,0,0,date('j'), date('d'), $input ,date('Y')));
but that did not work either.
Any help would be much appreciated, thanks in advance.