Php - Use (Alias)

About

use operator is for giving aliases to:

  • names of classes,
  • interfaces
  • or other namespaces.

Example

use My\Full\Classname as Another;
use My\Full\NSname; // Same as use My\Full\NSname as NSname

Documentation / Reference


Powered by ComboStrap