Php fusion
Publié le - 1939 v. -

PhP 7, accepted and adopted by all developers

Since the release of PHP 7, the majority of php developers constantly brag. Indeed, this new version offers many features ever more efficient and offer more flexibility.

Lightning fast

Since its creation in 1994, the language has matured and has even become a truly effective and versatile tool for developing a good website. Today he knows a hit with developers and even more with the release of the new version, PHP 7. This language offers impressive and improved performance. It is twice faster with php engine new generation.

An explicit typing for scalar types

This new version also allows you to use an explicit typing for scalar types. If PHP was originally a weakly typed language, the type of hints there have now been integrated and has integers, strings, decimal numbers and Boolean with an opportunity to support the types of statements return.

If PHP is used in standard mode or coercive mode, it will not display an error when the wrong type is Retoure without being converted into the desired type. The string will be 12 per cent. ex. authorized in the case where the interface of the function or that of the Method One expects an integer. In case you turn directly strict mode, php will be much more forgiving and so immediately display an error if the types do not match 100%.

New operators

7 PHP also knows two new operators whose null coalesce operator and the operator spaceship. The first operator is a ternary operator, which has the function of ensuring that the assessed value exists and is not zero. In this case, the value in question is returned. Otherwise, it will be an alternative value will be returned. The second operator will help to determine if the value is less than or identical to another.

Anonymous classes

Php 7 lets you declare anonymous classes on the fly and will be comparable to the anonymous functions.


Les publications similaires de "Actu PHP"

  1. 4 Fév. 2022Bitcoin Mining with Machines: The Best Strategies for Increased Profits102 v.
  2. 27 Janv. 2022Honest and Explicit: SitePoint's Definitive List of the Best PHP Development Sites159 v.
  3. 25 Déc. 202112 Reasons Why You Should Became a PHP Programmer in Canada126 v.
  4. 19 Déc. 2021The Benefits of Hiring a PHP Development Company129 v.
  5. 22 Nov. 2021When You Want to Move a PHP Website: Tips for Successful Relocation195 v.
  6. 11 Août 2021The Importance of a PHP Developer: Understand Your Needs237 v.
  7. 3 Juil. 2021Look at the new publishing media !275 v.
  8. 23 Avril 2021Is ruby for you?336 v.
  9. 13 Fév. 2021Suggest a good php service is also improved the SEO of a website354 v.
  10. 21 Déc. 2020Working with the most competent Php firms413 v.
  11. 10 Déc. 2020Building a bridge inbetween SEO and Php programming478 v.
  12. 3 Déc. 2020What php means527 v.
  13. 4 Nov. 2020All the services provided by a Php company452 v.