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