PHP 7 added new features

Home / wphtml / PHP 7 added new features
  • Speed : Php 7 add speed as compare to 5 and 6 it is twise to double speed execution.
  • Type Declarations : with php 7 you can declare variable type in function like object, array , float or int.
  • Error Handling : it will update with fatal error and exception handling.
  • New Operators : with php 7 added new operator call “Spaceship Operator” < = >
  • Easy User-land CSPRNG : API for an easy to use and reliable Cryptographically Secure PseudoRandom Number Generator in PHP 7
    You cane generate random no with new function like( random_bytes(3) , random_int(1,15); ).

    unicode support for emoji

    echo “\u{1F60D}”; // outputs 😍