php Null coalescing operator (??)

$x =?expr1????expr2;

Returns the value of $x.

The value of $x is?expr1?if?expr1?exists, and is not NULL.

If?expr1?does not exist, or is NULL, the value of $x is?expr2.

Introduced in PHP 7

要查看或添加评论,请登录

Abanoub Makram的更多文章

  • PHP fn Keyword

    PHP fn Keyword

    The fn keyword is used to create arrow functions. Arrow functions are only available in PHP versions 7.

社区洞察

其他会员也浏览了