📜  遇到格式不正确的数值 - PHP 代码示例

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

代码示例1
// when working with datetime php got below error, 
A non well formed numeric value encountered

// please add strtotime

// your code =>
date('H:i', '10:00');  // INCORRECT

//
date('H:i', strtotime('10:00'))); // CORRECT (add strtotime)