Write a PHP script to get the number of days of the current month.
<?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
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer