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

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

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

الأجوبة

<?php
echo date('m', strtotime('-1 month'))."\n";
?>

Sample Output:

06
هل كان المحتوى مفيد؟

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

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