I am using PHP’s date function. The statement is as simple as
$t= 1339455660;
echo date('l, d F Y H:i:s', $t); // not working
For some reason the above function returns an empty string:
" "
What could be the reason?
EDIT:
$t= 1339455660;
echo date('l, d F Y H:i:s'); // works returns desired result
echo date('l, d F Y H:i:s', $t); // returns " " #wierd
You can typecast
$tas integer using:(int)$t.