1 2 3 4 5
<?php if ($_SERVER['REQUEST_METHOD'] === 'GET'): ?> True <?php else: ?> False <?php endif; ?>