Problem using PHP null coalescing together with ternary operator to reset a Session
I am trying to reset the Session with the below code: <?= $_SESSION['pettySuccess']??''; (($_SESSION['pettySuccess']??'')=='') ?'': unset($_SESSION['pettySuccess']); ?> the idea behind my code is for the pettySuccess session to reset the session when it doesn't evaluate as ' ' but here…