writing if statements like this is tiring, and wastes lines 🙁
1 2 3 4 |
if (isset($_GET['some_variable']) $some_variable = intval($_GET['some_variable']); else $some_variable = -1; |
try this:
1 |
$some_variable = (isset($_GET['some_variable'])) ? intval($_GET['some_variable']) : -1; |