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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners