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

Date Published: 05/04/2020Published By: JaiSchool

<?php

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

?>

Publish A Comment

Leave a Reply

Your email address will not be published.