Categories
PHP / MySQL

PHP7 – Group use Declarations

PHP 7 is improved current PHP namespace implementation by introducing the concept of Group Use. This is the one of the coolest improvement to namespaces in PHP7. Group use Declarations are more readable and makes it easier to import classes, constants and functions in a concise way.

Group use declarations give the ability to import multiple structures from a common namespace and cuts a good level of verbosity in most cases. Group use declarations makes it easier to identify that multiple imported entities belong to the same module.

By Arjun

I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.

Leave a Reply

Your email address will not be published. Required fields are marked *