มีงาน PHP ที่ต้องหาวันที่สุดท้ายของเดือน โค้ดตามด้านล่างนี้ครับ

echo date('Y-m-d',strtotime('-1 second',strtotime('+1 month',strtotime(date('m').'/01/'.date('Y').' 00:00:00'))));

ที่มา : http://ullu.wordpress.com/2007/02/28/find-last-day-of-the-month-in-php/