"2015/01/29"この日付をPHPで理解できる形式に変換したかったのです: 2015-01-29.
<の日付文字列?php$date変数の構造は次のように表示されます:
// (1) 1422486000
$time = strtotime("2011/05/21");
// (2) getDate() は、そのタイムスタンプの
// 情報、または
//timestamp が指定されていない場合は現地時刻を含む配列を返します
$date = getDate($time);
print_r($date);
?>
Arrayit は機能し、取得できる最良の構造ではない場合でも、少なくとも日、月、および現在の年に関する基本情報を取得することは可能です.
(
[seconds] => 0
[minutes] => 0
[hours] => 0
[mday] => 29
[wday] => 4
[my] => 1
[年] =>2015
[yday] =>28
[平日] =>木曜日
[月] =>1月
[0] =>1422486000
)
Please disable your ad blocker and refresh the window to use this website.