Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Long and short month names in a php array.
<?php
$short = array(
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec'
);
$long = array(
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
);
@Sanix-Darker

This comment has been minimized.

Copy link

@Sanix-Darker Sanix-Darker commented Jun 27, 2017

Thank's for that!

@Scorpionsc

This comment has been minimized.

Copy link

@Scorpionsc Scorpionsc commented Jan 23, 2018

Cool

@antxd

This comment has been minimized.

Copy link

@antxd antxd commented Jun 30, 2018

thanks ;-)

@hAbd0u

This comment has been minimized.

Copy link

@hAbd0u hAbd0u commented Jul 20, 2018

Very useful, thanks.
For other languages you can find a bunch of languages including short and long names.

@aaronmyatt

This comment has been minimized.

Copy link

@aaronmyatt aaronmyatt commented Feb 14, 2021

This is appreciated 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment