📜  php 检查新月份 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.885000             🧑  作者: Mango

代码示例2
You can use date_parse to parse almost any date format into its components. For example:

$date = date_parse("2012-01-02");
var_dump($date);
Will output:

array(12) {
  ["year"]=>
  int(2012)
  ["month"]=>
  int(1)
  ["day"]=>
  int(2)
  ["hour"]=>
  bool(false)