본문 바로가기

[PHP] 해당 달의 마지막 날짜 얻기


php에서 해당 하는 달의 마지막 날짜가 얼마인지 구하기.

 


옵션 : t 

echo date('t', strtotime("2019-01-01"));