« 12月 2012 5月 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Latest Entries
Categories
Archives
Recent Comments
Profile
Links
Mobile
Tag Cloud
日付の処理なんかやってると01月とか05日とか数字の先頭に0ゼロが付いてるケースがあり、忘れた時のために、簡単に先頭の0を削除する方法をメモ
$hogehoge //先頭に0が付いている変数
ltrim($hogehoge, 0);
これで先頭のゼロが削除できる。 めちゃくちゃ簡単
Name (required)
Mail (will not be published) (required)
Website