I have to compute a specific date considering the number of days I want to substract.
My code looks roughly like this:
$datac = date("Y-m-d");
$data = strtotime("-1 day" ,$datac);
But the output is: -84384 I don't understand what I do wrong. It should work something like date -1 and show the date from yesterday. Thank you!