⚙️
PHP Tools Hub
Tools
PHP
Quick
Contact
Home
>
Tutorials
>
PHP
>
PHP Variables
PHP Variables Tutorials
42 tutorials found.
📘
& Creates Reference
Variable References | Reference Operator | PHP
📘
$ Sign Required
Syntax | Dollar Prefix | PHP
📘
$$var Dynamic Name
Variable Variables | Double Dollar | PHP
📘
$123name
Invalid Examples | Starting Number | PHP
📘
$name
Valid Examples | Simple Variable | PHP
📘
$name = "John"
Assignment | Value Assignment | PHP
📘
$name vs $NAME Different
Case Sensitivity | Different Variables | PHP
📘
Available Everywhere
Predefined Variables | Superglobals | PHP
📘
Check Variable Set Not Null
Variable Functions | isset Function | PHP
📘
Inside Function Only
Variable Scope | Local Scope | PHP
📘
Start with Letter or Underscore
Naming Rules | First Character | PHP
📘
#NAME?
Syntax | Assignment Operator | PHP
📘
${$x} Syntax
Variable Variables | Complex Syntax | PHP
📘
$first_name
Valid Examples | With Underscore | PHP
📘
$name$
Invalid Examples | Special Characters | PHP
📘
All Global Variables
Predefined Variables | $GLOBALS Array | PHP
📘
Both Point to Same Data
Variable References | Reference Behavior | PHP
📘
Check Variable Empty
Variable Functions | empty Function | PHP
📘
Copies Value to New Variable
Assignment | Copy by Value | PHP
📘
Letters Numbers Underscores
Naming Rules | Next Characters | PHP
📘
Outside Functions Only
Variable Scope | Global Scope | PHP
📘
Wrong Case Causes Error
Case Sensitivity | Common Mistake | PHP
📘
& Creates Reference
Assignment | Copy by Reference | PHP
📘
$na me
Invalid Examples | Space in Name | PHP
📘
$var123
Valid Examples | With Numbers | PHP
📘
Cannot Use Keywords as Names
Naming Rules | Reserved Keywords | PHP
📘
Destroy Variable
Variable Functions | unset Function | PHP
📘
Local to Function
Variable Scope | Function Parameters | PHP
📘
Server Environment Variables
Predefined Variables | $_SERVER Array | PHP
📘
$first-name
Invalid Examples | Hyphen Character | PHP
📘
$firstName
Valid Examples | Camel Case | PHP
📘
Check if NULL
Variable Functions | is_null Function | PHP
📘
HTTP GET Parameters
Predefined Variables | $_GET Array | PHP
📘
Persistence Between Calls
Variable Scope | Static Variables | PHP
📘
Access Global Inside Function
Variable Scope | Global Keyword | PHP
📘
HTTP POST Parameters
Predefined Variables | $_POST Array | PHP
📘
$GLOBALS['var'] Access Anywhere
Variable Scope | GLOBALS Array | PHP
📘
File Upload Variables
Predefined Variables | $_FILES Array | PHP
📘
HTTP Cookies
Predefined Variables | $_COOKIE Array | PHP
📘
Session Variables
Predefined Variables | $_SESSION Array | PHP
📘
GET POST COOKIE Combined
Predefined Variables | $_REQUEST Array | PHP
📘
Environment Variables
Predefined Variables | $_ENV Array | PHP