Created
May 5, 2020 10:44
-
-
Save DavidePrincipi/9bf0f52d21d59c18069d88eeb690bf3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace f1; | |
function foo() { | |
echo __FILE__ . "\n"; | |
} | |
foo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace f2; | |
function foo() { | |
echo __FILE__ . "\n"; | |
} | |
foo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach (array("f1.php", "f2.php") as $file) { | |
include $file; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment