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

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -