PHP Last Day of Current Month


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. date("t"); // Number of days in the given month (from php documentation)
  4.  
  5. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.