Q:

Write a PHP script to get the number of days of the current month

0

Write a PHP script to get the number of days of the current month.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
echo 'Number of days for the month of '.date('M'). ' is :' .date('t')."\n";
?>

Sample Output:

Number of days for the month of Jul is :31

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now