O'Reilly logo
  • john eischen thinks this is interesting:

Group use declarations

Classes, functions, and constants, which are in the same namespace, can be now imported in a single use statement. Previously, multiple use statements were required for that. Here is an example to understand it better:

<?php
// use statement in Pre-PHP7 code
use abc\namespace\ClassA;
use abc\namespace\ClassB;
use abc\namespace\ClassC as C;

use function abc\namespace\funcA;
use function abc\namespace\funcB;
use function abc\namespace\funcC;

use const abc\namespace\ConstA;
use const abc\namespace\ConstB;
use const abc\namesp...

From

Cover of Building RESTful Web Services with PHP 7

Note

shorten code