Latest news
Home » PHP » find yesterday date in php

find yesterday date in php

Use php date function and minus (-1) days from today’s date
$smart_yesterday = strtotime(date(‘Y-m-d’, strtotime( ‘-1 days’)));

Leave a Reply

x

Check Also

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function ...