Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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)


 
PREVIOUS NEXT
Tagged: #formed #numeric #encountered
ADD COMMENT
Topic
Name
2+4 =