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
https://youtu.be/CzoS2L5JoK0?si=gRxvB6HCqy6yzIhf
How to Download , Install & Setup PhpStorm For PHP Development Full License.
https://youtu.be/nvgw5J5-I9A?si=3Q-l-WP2WNIhZMRN
How to set up PHPStorm IDE with XAMPP local server
https://youtu.be/Pmd2n1iCEFI?si=5tsE8lWfGkj2X8ty
PHP- Introduction, Syntax, Case Sensitivity From W3Schools || Burmese Tutorial
https://youtu.be/YeS2ePjGaB4
How to install & Setup PhpStorm For PHP Development | Full License for Beginners || Burmese Tutorial
https://youtu.be/5Fu0itP95yM
How to Write Comments in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners
https://youtu.be/h-oCRwurseA
PHP Variable and Data Type Burmese Tutorial
https://youtu.be/Q22g7OL2vU4
Local and Global Scope in PHP | PHP Tutorial
https://youtu.be/foQ6zUnq5z8
Echo vs Print in PHP What’s the Difference and what’s is Same?
https://youtu.be/cJiwrduFXDw
————————————————-
#php #phptutorial #learnphp #phpforbeginners #mcqonphp #phpforonlineexam #infinityit #burmese #myanmar #infinityit #burmesetutorials
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.
Remember that PHP variable names are case-sensitive!