PHP ISSET Ternary Operator
$friendid = isset($_GET['friendid']) ? $_GET['friendid'] : 'empty';
khurram khan
$friendid = isset($_GET['friendid']) ? $_GET['friendid'] : 'empty';
isset($var) ?: $var = 'default';