Source: programmingdive.com

New Features introduced in PHP 7

Category: PHP

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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners