1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php $at = isset($_GET['at']) ? $_GET['at'] : null; switch ($at) { case 'example': // do something break; case 'upgrade': // do something break; default: // none of the cases above were matched, default behavior goes here }