/ Published in: PHP
Expand |
Embed | Plain Text
/* 意味:指定した日の月末を取得する 引数: $date 日付を示す文字列(YYYY/MM/DD)を指定します 返り値: 指定した日の月末を示す数値 */ function get_monthend($date) { $year = $dateArr[0]; $month = $dateArr[1]; return $lastday; } $date = "2009/02/02"; $monthend = get_monthend($date); echo $monthend; //●実行結果 //28
You need to login to post a comment.
