RE: [PHP] unset a function?
| From: | Rick Emery | Date: | Wed, 30 Jan 2002 21:06:45 +0000 |
| Subject: | RE: [PHP] unset a function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82820@lists.php.net to get a copy of this message | ||
include_once() won't help. In fact, he is including each file only once.
He wants to have a function with the same name in each file. That's the
kicker...
-----Original Message-----
From: Philip Olson [mailto:philip@cornado.com]
Sent: Wednesday, January 30, 2002 3:03 PM
To: Bas Jobsen
Cc: PHP List
Subject: Re: [PHP] unset a function?
This sounds like a job for include_once
www.php.net/include_once
regards,
Philip Olson
On Wed, 30 Jan 2002, Bas Jobsen wrote:
> Hello,
>
> I have this:
> <?
> include("file1");
> function_somename();
> include("file2");
> function_somename();
> ?>
>
> file1 and contain a function definition, but the function in both files
had
> the same name. This will give "Cannot redeclare ....". So can i unset the
> function before the second include?
>
> Tnx,
>
> Bas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net