Hey!
I was having trouble using the ternary operator to check if an array exists in a table. For example if $name['name'] exists echo the value otherwise echo the "None". Any help would be appreciated! Thanks
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.