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? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -