Last active
May 18, 2021 14:01
-
-
Save donpandix/29fb516e37cd9bad91da3c5a2e0cc1a3 to your computer and use it in GitHub Desktop.
Utilidad que retorna la lista de meses del año en español
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Listado de meses en español | |
*/ | |
class Util { | |
/** | |
* Lista de meses | |
*/ | |
public static function Meses () { | |
return [ | |
'01' => 'Enero' | |
,'02' => 'Febrero' | |
,'03' => 'Marzo' | |
,'04' => 'Abril' | |
,'05' => 'Mayo' | |
,'06' => 'Junio' | |
,'07' => 'Julio' | |
,'08' => 'Agosto' | |
,'09' => 'Septiembre' | |
,'10' => 'Octubre' | |
,'11' => 'Noviembre' | |
,'12' => 'Diciembre' | |
]; | |
} | |
} | |
// USO Util::Meses() retorna un arreglo de tuplas donde el id es el código y el valor en nombre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment