How to write this expression with ternary operator? php 8.
if (Uri::segment(0) == '') {page = Uri::segment(1); } else {
page = (Uri::segment(0) == '') ? 'tickets' : ((Uri::segment(1) != '') ? Uri::segment(1) : Uri::segment(0));
Anonymous Asked question May 13, 2021
Recent Comments