Computer Science, asked by mahuya6621, 8 months ago

What is the use of 7/"" operator?

Answers

Answered by gavenpais
0
PHP 7 - Null Coalescing Operator. In PHP 7, a new feature, null coalescing operator (??) has been introduced. It is used to replace the ternary operation in conjunction with isset() function. The Null coalescing operator returns its first operand if it exists and is not NULL; otherwise it returns its second operand.
Answered by DeenaMathew
0

7/"" is a new feature, null coalescing operator.

Uses :

1.It helps in replacing the ternary operation in conjunction with isset() function.

2. 7/"" returns its first operand if it is not NULL it returns its second operand.

3.PHP 7 helps in supporting return type declarations. In argument type declarations, return type declarations help to specify the type of the value that will be returned from a function.

Similar questions