How to get last day of the month using php -


this question has answer here:

how last day of month using php ?

<?php      echo date('?-?-?'); ?> 

<?php $day=new datetime('last day of month');  echo $day->format('m js'); ?> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -