In this example, you will learn how to get first day of week in PHP? Use the below example to get first day of week.
1 2 3 4 5 6 |
<?php $res = date('l - d/m/Y', strtotime("this week")); echo "First day of week = ", $res; ?> |
Output will be:
1 |
First day = Monday - 10/02/2020 |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.