Skip to content

Instantly share code, notes, and snippets.

@DavidePrincipi
Created May 5, 2020 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidePrincipi/9bf0f52d21d59c18069d88eeb690bf3b to your computer and use it in GitHub Desktop.
Save DavidePrincipi/9bf0f52d21d59c18069d88eeb690bf3b to your computer and use it in GitHub Desktop.
<?php
namespace f1;
function foo() {
echo __FILE__ . "\n";
}
foo();
<?php
namespace f2;
function foo() {
echo __FILE__ . "\n";
}
foo();
<?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