Skip to content

Glossary: PHP Basics

$_SERVER

Also written: $_SERVER['REQUEST_METHOD']

A superglobal array with details about the current request. `$_SERVER['REQUEST_METHOD']` is 'GET' or 'POST', which lets a page tell a first visit from a submitted form.

Where the book teaches it

Related terms

superglobalGETPOST