Give some variables in php

Variables in PHP, like in all languages are used for storing values. All variables in PHP start with a $ sign. They can be used to store numbers, strings or arrays. Once the variable is set, it can be used multiple times.

Variables in PHP are case sensitive and by default are assigned by value. Initializing a variable is not mandatory. PHP also has some predefined variables. Different categories of variables include:

$GLOBAL: Referenc
es all variables available in global scope

$_GET - HTTP GET variables

$_POST - HTTP POST variables

$_SESSION - Session variables

$_REQUEST - HTTP Request variables

Example:


$sample ="Sample text";

?>