With the release of PHP 7 on Dec 3rd, 2015 in the PHPs ecosystem, many new features introduced in PHP 7 version. This version actually brought an evolutionary change in the release that provided many new features and boosted performance to a new level.
With the release of PHP 7, now we can pass strings (string), integers (int), floating-point numbers (float), and booleans (bool) as an argument in the function as seen in the above example.
Prior to this, it was possible in PHP 5.6 with const.
In the previous post (Understanding namespace in PHP), we have learned how can we use the namespace keyword in PHP.