Created
June 16, 2015 22:14
-
-
Save akondas/e2f4dddb39b4712953ff 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 | |
// do PHP 5.6 | |
use Framework\Component\ClassA; | |
use Framework\Component\ClassB as ClassC; | |
use Framework\Component\OtherComponent\ClassD; | |
// od PHP 7 | |
use Framework\Component\{ | |
ClassA, | |
ClassB as ClassC, | |
OtherComponent\ClassD | |
}; | |
// można używać też do funkcji i stałych | |
use Framework\Component\{ | |
ClassA, | |
function OtherComponent\someFunction, | |
const OtherComponent\SOME_CONSTANT | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment