Answers for "php 7 new features"

PHP
0

features of PHP7

features of PHP7

1)Scalar type hints
2)Return type declarations
3)Anonymous classes
4)The Closure::call() method
5)Generator delegation
6)Generator return expressions
7)The null coalesce operator
8)The space ship operator
9)Throwables
10)Level support for the dirname() function
11)The Integer division function
12)Uniform variable syntax
  
  
 For More information 
 https://feryn.eu/blog/php-7-is-now-available-new-features-improvements/
Posted by: Guest on August-06-2021
0

php 7

<?php
// Fetches the value of $_GET['user'] and returns 'nobody'
// if it does not exist.
$username = $_GET['user'] ?? 'nobody';
// This is equivalent to:
$username = isset($_GET['user']) ? $_GET['user'] : 'nobody';

// Coalescing can be chained: this will return the first
// defined value out of $_GET['user'], $_POST['user'], and
// 'nobody'.
$username = $_GET['user'] ?? $_POST['user'] ?? 'nobody';
?>
Posted by: Guest on May-27-2020
-1

php 7

<?php
  echo "oke";
?>
Posted by: Guest on May-01-2020

Browse Popular Code Answers by Language