Php - Use (Alias)

> Procedural Languages > Php

1 - About

use operator is for giving aliases to:

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

2 - Example

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

3 - Documentation / Reference

Advertising