Can there be more than two ternary operators?

the first paragraph is that I want to decide whether $_ GET ["status"] is empty. Yes, please indicate

$_GET["status"]!=""? x :"" ;

but in x I want to add another criterion

$_GET["status"]==1 ?"":"";

that is, when you make sure that the status is not empty
"judge" if it is 1, then the
is on the shelf

if it is not, it means that it is not public

.
Mar.04,2021

add it directly:

$_GET['status'] != ''? ($_GET['status'] == 1 ? '' : '') : '';

add parentheses

Menu