3-Variable in php with previous commands practice (variable swapping)

Опубликовано: 28 Сентябрь 2024
на канале: Code with Salman
78
1

http://learnfromsalman.blogspot.com/2...

A variable in PHP is a name of memory location that holds data. A variable is a temporary storage that is used to store data temporarily.
In PHP, a variable is declared using $ sign followed by variable name.
Syntax of declaring a variable in PHP is given below
$variablename=value;
Loosely typed language
PHP is a loosely typed language, it means PHP automatically converts the variable to its correct data type.