Answers for "a non well formed numeric value encountered"

PHP
3

a non well formed numeric value encountered

// 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)
Posted by: Guest on October-28-2020

Code answers related to "a non well formed numeric value encountered"

Browse Popular Code Answers by Language