We will use the date function to get the current month in PHP.
<?php
//half name in words
echo date(‘M’);
//full name in words
echo date(‘F’);
//Month Number
echo date(‘m’);
The post How to get Current Month in PHP? appeared first on PHPGurukul.