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

  • برمجة بي اتش بي

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
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...