Hi all.
What's the best practice with using the Ternary Operator vs. the Error Control Operator when setting a simple varaible? I doubt there is any performance issues?
<?php
$var = isset($_GET["var"]) ? $_GET["var"] : "";
$var = @$_GET["var"];
?>
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.