简体   繁体   中英

How to find the date number for the first day of the current week on PHP

I need to find the date number for the first day of the current week. For example if the date is 05/06.2015 I want to get as a result 29/05/2015 where Monday is the firs day of the week. I'm not very familiar with PHP date functions because I'm new at it. Can someone show me how to find it? Thanks!

strtotime是一个强大的功能。

echo date("j/n/Y", strtotime('monday this week'));   

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM