Hi guys,
I'm making a simple newsscript (my first one ever)
and It's working fine, but the date (hrs and seconds)
are not displayed, instead, I receive the follow message:
Title [
Notice: A non well formed numeric value encountered in C:\Users\Me\Desktop\UsbWebserver\UsbWebserver\Root\ch16\functions.php on line 6
12 Mar 2010]
And so, I checked my code, but it is similiar to what my book tells me,
but it still does not work.
functions.php:
<?php
function formatDate($val)
{
$arr = explode('-', $val);
return date('d M Y', mktime(0,0,0, $arr[1], $arr[2], $arr[0]));
}
?>
Thank you guys.