PHP is a server side scripting language used for web designing and development. PHP has become an industry standard before ASP.Net and others like Ruby, Java. The new PHP version released the latest version of PHP is PHP 7. which is claiming it to be twice as fast as its predecessor PHP 5.
- Advantages:
- Performance:
- Return Type:
public function area (float $r) : float { return 3.14*$r*$r;
}
-Spaceship Operator:
function sort ($a,$b)
{
if ($a>$b)
return 1;
else if ( $a ==$b)
return 0;
else
return -1;
}
Prakash nidhi Verma
13-Jul-2018PHP 5 vs PHP 7:
PHP is a server side scripting language used for web designing and development. PHP has become an industry standard before ASP.Net and others like Ruby, Java. The new PHP version released the latest version of PHP is PHP 7. which is claiming it to be twice as fast as its predecessor PHP 5.
- Advantages:
- Performance:
- Return Type:
-Spaceship Operator:
In PHP 7:
- Null Coalesce Operator:
In PHP 7: