Variables are "containers" for storing information.
Creating (Declaring) PHP Variables
In PHP, a variable starts with the $ sign,
followed by the name of the variable:
$x = 2024;
$y = "InfinityIT"
When you assign a text value to a variable, put quotes around the value.
Unlike other programming languages,
PHP has no command for declaring a variable.
It is created the moment you first assign a value to it.
PHP Variables
A variable can have a short name (like $x and $y) or
a more descriptive name ($age, $carname, $total_volume).
Rules for PHP variables:
A variable starts with the $ sign, followed by the name of the variable
A variable name must start with a letter or the underscore character
A variable name cannot start with a number
A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
Variable names are case-sensitive ($age and $AGE are two different variables)
Remember that PHP variable names are case-sensitive!
https://www.php.net/
A popular general-purpose scripting language that is especially suited to web development.
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
LIKE SHARE and SUBSCRIBE!!
-------------------------------------------------
Link of PHP TUTORIALS
How to Install XAMPP Server on Windows 10
• How to Install XAMPP Server on Windows 10 ...
How to Download , Install & Setup PhpStorm For PHP Development Full License.
• How to Download , Install & Setup PhpStorm...
How to set up PHPStorm IDE with XAMPP local server
• How to set up PHPStorm IDE with XAMPP loca...
PHP- Introduction, Syntax, Case Sensitivity From W3Schools || Burmese Tutorial
• PHP- Introduction, Syntax, Case Sensitivit...
How to install & Setup PhpStorm For PHP Development | Full License for Beginners || Burmese Tutorial
• How to install & Setup PhpStorm For PHP De...
How to Write Comments in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners
• How to Write Comments in PHP | PHP Tutoria...
PHP Variable and Data Type Burmese Tutorial
• Variables in PHP; How to Declare variables...
Local and Global Scope in PHP | PHP Tutorial
• Local and Global Scope in PHP | PHP Tutori...
Echo vs Print in PHP What's the Difference and what's is Same?
• Echo vs Print in PHP What's the Difference...
-------------------------------------------------
#php #phptutorial #learnphp #phpforbeginners #mcqonphp #phpforonlineexam #infinityit #burmese #myanmar #infinityit #burmesetutorials