php yesterday
snippet in php

yesterday php

user4578

date('F j, Y',strtotime("-1 days"));

php yesterday

user3384

$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');

yesterday php

user117

date("F j, Y", time() - 86400);