How to display end date of the current week in PHP?

PHP

Nicesnippets

458

09-01-2021


Hi Guys,

In this example,I will learn you how to display end date of the current week in php.you can easy and simply display end date of the current week in php.

Example:


<?php

$date = date('Y-m-d');

echo $date;

?>

Output:

2021-01-09

It will help you...