Re: Re: Error: Can't redeclare already declared function (PHP 3.0.15)
| From: | Kodrik | Date: | Sat, 27 Oct 2001 07:21:46 +0000 |
| Subject: | Re: Re: Error: Can't redeclare already declared function (PHP 3.0.15) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72550@lists.php.net to get a copy of this message | ||
I include files in each other all the time, and some of them might call the
same functions (like database functions).
I just use a string in all function declaration with the name of the
functions or set of functions in the file.
if(!$function_test)
{
$function_test=1;
function test()
{
dfg
fdggfdg
fdg
}
}
This way you can include the same functions many times without error.