How to get the date next Friday

0

I would like to inform you what day falls every Friday, how do I do it? Then when it arrives next Friday it informs the other Friday and so on.

    
asked by anonymous 18.11.2017 / 19:44

1 answer

0

The function strtotime allows you to generate dates from strings like "next Friday":

echo date('Y-m-d', strtotime('next Friday'));

See it working .

    
19.11.2017 / 15:09