/ Published in: PHP
Expand |
Embed | Plain Text
/* 意味:指定した日の来月を取得する 引数: $date 日付を示す文字列(YYYY/MM/DD)を指定します 返り値: 指定した日の来月を示す数値 */ function get_next_month($date) { if ($month == 13) { $month = 1; $year = $year + 1; } }
You need to login to post a comment.
