Last active
August 29, 2015 14:17
-
-
Save dcabanaw/a885947172f421f3cbd0 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 | |
| // example_1 | |
| // creates a new Request from the default namespace ie "\Request" | |
| $x = new Request(); | |
| // example_2 | |
| // creates a new Request from the CorpName\App namespace ie "CorpName\App\Request" | |
| namespace CorpName\App; | |
| $x = new Request(); | |
| // example_3 | |
| // creates a new Request from the CorpName\App\Stuff namespace ie "CorpName\App\Stuff\Request" | |
| namespace CorpName\App; | |
| use CorpName\App\Stuff\Request; | |
| $x = new Request(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment