What's new in PHP7?

Sim
Written by Sim

Posted On: Jan 09, 2019

 

    1 Answer Written

  •  Sim
    Posted by smily

    New features of PHP 7 are  - 

    1. Scalar type declaration
    2. Return type declarations
    3. Null coalescing operator
    4. Spaceship operator
    5. Constant arrays using define
    6. Anonymous classes
    7. Unicode codepoint escape syntax
    8. Closure::call
    9. Filtered unserialize
    10. IntlChar
    11. Expectations
    12. Group use declarations
    13. Generator Return Expressions
    14. Generator delegation
    15. Integer division with intdiv
    16. Session options
    17. preg_replace_callback_array
    18. CSPRNG Functions

Please Login or Register to leave a response.

Related Questions

PHP 7 interview questions

Explain Scalar type declarations in PHP7.

Scalar type declarations is a new feature of PHP that is introduced in PHP 7. There are two options of Scalar type declaration are available.Strict Coercive ...