php7

PHP7 Null coalesce operator

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator (),scalar type declarations,return type declaration,null coalesce operator any many others new features.So then first see what is this operator.(??) is null coalesce operator.In previous version till 5.6 we was see a operator that is called ternary operator(?).Null coalesce operator 

Continue Reading…

PHP7 Return type declarations

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator (),scalar type declarations any many others new features.Return type declaration a great features what i think.You can specify a return type for a function.You can define both scalar type and return type declaration in a same function.Let see an 

Continue Reading…

PHP7 Scalar type declarations

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator (),scalar type declarations any many others new features.Here we know how to use scalar type declaration in PHP7.There are two flavor for scalar type declaration such as coercive (default) and strict. strings integers floating-point booleans Those four types of 

Continue Reading…

PHP7 Spaceship Operator

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator () any many others new features.In here we know how to use php7 spaceship operator().Let see how to use it. PHP7 Spaceship Operator() This operator will offer combined comparison in that it will : Return 0 if values on 

Continue Reading…