Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, an
Just asked this and was pointed here. So in case you use a key of an array, this might be an improvement
key
array
function isset_get($array, $key, $default = null) { return isset($array[$key]) ? $array[$key] : $default; }