$a = $_GET['a'];
if (condition) { // Do something }
(condition) ? condition is true : condition is false;