Last active
March 14, 2017 18:41
-
-
Save herloct/86655823a94dfc6f565e9771219fbd46 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 // lib/Database.php | |
namespace lib; | |
class Database | |
{ | |
} |
This file contains hidden or 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 // test.php | |
require __DIR__.'/lib/Tools.php'; | |
$tools = new Tools(); |
This file contains hidden or 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 // lib/Tools.php | |
require __DIR__.'/Database.php'; | |
namespace lib; | |
class Tools | |
{ | |
function something() | |
{ | |
$db = new Database(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment