codehaven - php snippets - coding help
Generic filters
Exact matches only

Dropdown with Months Auto Selected Current Month

26th July 2019

Php - Dates & Time

php codehaven

This code will select the current month and have it appear as the first shown option in the dropdown. Very handy for forms.

Was this code snippet helpful?