Posted By

alli14404 on 12/19/07


Tagged

php date last


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

koncept
vali29


PHP Last Day of Current Month


 / Published in: PHP
 

URL: http://uk3.php.net/date

Easiest way to get the last day in the current month.

  1. <?php
  2.  
  3. date("t"); // Number of days in the given month (from php documentation)
  4.  
  5. ?>

Report this snippet  

You need to login to post a comment.