RE: [PHP] Re: redeclaring functions
| From: | John Holmes | Date: | Thu, 27 Jun 2002 01:55:36 +0000 |
| Subject: | RE: [PHP] Re: redeclaring functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104084@lists.php.net to get a copy of this message | ||
> And sorry but no, I can't just delete one of the functions...these
scripts
> are used in many other places by themselves without the other..so
script A
> has to be able to have this function on its own page, and so does
script B
> on its own page.
And sorry but no, you can't have two functions with the same name.
Period. Use some logic when you're programming and rethink your
solution. Use function_exists() before each function declaration so you
don't declare it twice? Are both functions exactly the same?
---John Holmes..