Last active
March 23, 2018 09:09
-
-
Save lloc/fede88d2bc9a80311541b86d58f7601c 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 | |
require_once 'namespace-class.php'; | |
// Namespace: Using | |
echo ( new \wctrn\realloc\Post() )->get_content(), PHP_EOL; | |
// Namespaces: Importing | |
use \wctrn\realloc\Post; | |
echo ( new Post() )->get_content(), PHP_EOL; | |
// Namespaces: Aliasing | |
use \wctrn\realloc\Post as Talk; | |
echo ( new Talk() )->get_content(), PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment