Although I have been coding in PHP for a while now I am trying to go back to basics with some things to make sure by understanding and methods are the most efficient.I have the following snippet...if (!empty($_GET['location']))    {        $location = $_GET['location'];    }else    {        $location = '';    }Hopefully the purpose of the snippet should be clear but what I want to know is am I doing it right, is this the most effective way of expressing this simple function?
Simple IF statement, am I doing it right?
php