Redeclare formatdate
| From: | Miguel Br�s | Date: | Sat, 01 Feb 2003 22:52:39 +0000 |
| Subject: | Redeclare formatdate | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133930@lists.php.net to get a copy of this message | ||
Hi,
I have this message coming when calling the page main.php
Fatal error: Cannot redeclare formatdate() in
/home/virtual/site239/fst/var/www/html/home/not_main.php on line 3
the code related to this message is:
<?
// format MySQL DATETIME value into a more readable string
function formatDate($val)
{
$arr = explode("/", $val);
return date("d/m/y", mktime(0,0,0, $arr[1], $arr[2], $arr[0]));
}
?>
I use this code is some other pages and it works well, but here the code
is used in page not_main.php whose I included it on main.php using require()
function
Anyone have a tip for it?
Thx
Miguel