polidog lab
ArchivesSlidesTagsAboutContactGitHub
ArchivesSlidesTagsAboutContact
2011.05.17

今月の最後の日を取得する

#php

PHPで今月の最後の日を取得する方法っていくつかあったとおもいますが、いつも忘れてしまいますw
でも結局こうやれば楽じゃねってはなしですよね?

なんかよく忘れるのでメモっておきます。

echo date("Y-m-t");

カテゴリ

#tech
この記事を X で共有 →
前の記事文字をケータイ絵文字に変換してみた次の記事気がつけば5月も後半戦
AboutTagsContactRSS

© 2026 polidog lab

polidog lab

Photo: Jaz. Mine / Unsplash LicensePhoto: Se. Tsuchiya / Unsplash LicensePhoto: Sergio / Unsplash LicensePhoto: Robert Bant / Unsplash LicensePhoto: Zhi Xuan Hew / Unsplash License