PHP 7 可以使用一个 use 从同一个 namespace 中导入类、函数和常量:
<?php // Before PHP 7 use com\test\ClassA; use com\test\ClassB; use com\test\ClassC as C; use function com\test\fn_a; use function com\test\fn_b; use function com\test\fn_c; use const com\test\ConstA; use const com\test\ConstB; use const com\test\ConstC; // PHP 7+ code use com\test\{ClassA, ClassB, ClassC as C}; use function com\test\{fn_a, fn_b, fn_c}; use const com\test\{ConstA, ConstB, ConstC}; ?>