1.与时间相关的

 ---使用strtotime()函数把你的字符串时间转化为unix时间戳,然后使用date()输出    
  $time_str   =   "2005-08-09   12:54:31";  
  $time   =   strtotime($time_str);  
  echo   date("Y-m-d",   $time); 

 ---date('w', mktime(0, 0, 0, $this->month, $this->day, $this->year ));

 

2.string to int

$str="123";

$value=(int)$str;

相关文章:

  • 2021-12-22
  • 2021-12-23
  • 2021-09-05
  • 2021-05-21
  • 2021-05-22
  • 2021-04-25
  • 2021-12-24
  • 2021-09-28
猜你喜欢
  • 2022-01-04
  • 2021-11-05
  • 2022-02-18
  • 2021-06-21
  • 2022-12-23
  • 2021-09-05
相关资源
相似解决方案