PHP Variables, Data Types and Operators | PHP Tutorial
Variables are the storage location, which can store the values for the later manipulations in the program.
The main advantage of the PHP variable declaration is, it does not requires to specify the data type keyword separately such as int, char, float, double or string etc.
Basic Rules for Variable Declaration
● Variable name must always begin with a $ symbol.
● Variable name can never start with a number.
● Variable names are case-sensitive.
PHP scripting language supports 13 primitive data types.
Data Types plays important role in all programming languages to classify the data according to the logics.
PHP supports the following data types.
1. String 5. Array
2. Integer 6. Object
3. Float 7. NULL
4. Boolean 8. Resource
Operator is a symbol which is used to perform mathematical and logical operations in the programming languages.
Different types of operator in PHP are:
1. Arithmetic operators
2. Assignment operators
3. Comparison operators
4. Increment/Decrement operators
5. Logical operators
6. String operators
****************************************************************************
YouTube - / sriramasubramaniamnagarajan
Connect me @
instagram: / sriramasubramaniam
sololearn: https://www.sololearn.com/Profile/104...
PlayList:
PHP Tutorial : • PHP Tutorial
JavaScript Tutorial - • JavaScript Tutorial
Python Classes and Objects - • Python Classes and Objects
Python CSV - • Python CSV
C programming - • C Programming Language
Python Programming - • Python Programming
Python Programs - • Python programs
DataBase Concepts - • DataBase Concepts
canva - https://www.canva.com/join/simplified...