I have troubles understanding how the php shorthands for if/else described here works.
<?=(expression) ? $foo : $bar?> The expression I'm trying to shorten is the following :
if (isset($result[1][0])) { $var = $result[1][0]; } else { $var = ""; } Can somebody explain me how I can apply the shorthand if/else statement in my situation ?
Thank you !