session_start() is Old function of PHP.But from PHP 7 session_start() function accepts an array of options.
read_and_close option, which indicates that the session data should be read and then the session should immediately be closed unchanged.
cache_limiter to private and set the flag to close the session immediately after reading it
<?php session_start([ 'cache_limiter' => 'private', 'read_and_close' => true, ]); ?>
n Older PHP version (PHP 5 >= 5.3.0), if we want to import Classes,constants and functions from the same namespace then we have to use the "use" statement multiple times.
Return Type Declarations has been introduced in PHP 7.It specify the type of value that a function should return. The following types can be assigned to function return value.
Anonymous Classes is added in PHP 7.Anonymous classes are defined without any name.we can define an anonymous class using keyword "new class".