note 125023 added to migration70.new-features
| From: | rev2dev@php.net | Date: | Mon, 18 May 2020 13:06:37 +0000 |
| Subject: | note 125023 added to migration70.new-features | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214649@lists.php.net to get a copy of this message | ||
Beware ! The null coalescing operator (??) is in conjunction with isset() and not empty() :
<?php
$emtpy_string = "";
$str = $empty_string ?? "Yes";
echo "Result:" . $str;
?>
Result:
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.195 (proxied: 87.89.227.177)
----
Manual Page -- http://php.net/manual/en/migration70.new-features.php
Edit -- https://master.php.net/note/edit/125023
Del: integrated -- https://master.php.net/note/delete/125023/integrated
Del: useless -- https://master.php.net/note/delete/125023/useless
Del: bad code -- https://master.php.net/note/delete/125023/bad+code
Del: spam -- https://master.php.net/note/delete/125023/spam
Del: non-english -- https://master.php.net/note/delete/125023/non-english
Del: in docs -- https://master.php.net/note/delete/125023/in+docs
Del: other reasons-- https://master.php.net/note/delete/125023
Reject -- https://master.php.net/note/reject/125023
Search -- https://master.php.net/manage/user-notes.php