it's amzing when i send a null value in date() as a second parameter then it returns some time? how to remove this thing. i want that if a string is null or empty then doesn't do anything
$x=strtotime();
var_dump($x);
var_dump($x==NULL);
echo date('H:i',$x);
display
Warning: strtotime() expects at least 1 parameter, 0 given in
D:\xampp\htdocs\test\index.php on line 1
bool(false) bool(true) 05:30