Print All The Months of Gregorian Calendar in PHP (Using Loop)

<?php

for($i=1;$i<=12;$i++)
{
	$date = date_create("01-".$i."-2020");
	$months = $date->format("F");
	echo $months."<br>";
}

?>

Leave a Comment