Write a PHP script to get the current month and previous three months
- برمجة بي اتش بي
- 2021-09-09
- mhanasmh00489829403
الأجوبة
<?php
echo date("M - Y")."\n";
echo date("M - Y",strtotime("-1 Months"))."\n";
echo date("M - Y",strtotime("-2 Months"))."\n";
echo date("M - Y",strtotime("-3 Months"))."\n";
?>
Sample Output:
Jul - 2017 Jun - 2017 May - 2017 Apr - 2017
القوائم الدراسية التي ينتمي لها السؤال