-
-
Save parzibyte/22b230d925688cbf1e330c09d6242f8d to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/* | |
Obtener inicio y fin de mes en PHP | |
parzibyte.me | |
*/ | |
$inicio = date("Y-m-01"); | |
$fin = date("Y-m-t"); | |
echo "El inicio del mes actual es en $inicio, y el fin es en $fin"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment