[thelist] PHP, functions, include() and precedence
Jay Blanchard
jay.blanchard at niicommunications.com
Thu Dec 11 12:30:42 CST 2003
[snip]
If both functions.php and newerfunctions.php have a function called
foo(), which foo() will I have when I call it in script.php:
* The one called first?
* The one called last?
* Neither, because PHP will throw an error on the second include?
[/snip]
How about a quick test?
Fatal error</b>: Cannot redeclare foo() (previously declared in
/.......)
More information about the thelist
mailing list