i
PHP Variables
PHP Data Types
PHP Echo & Print
PHP Strings
PHP Numbers
PHP Constants
PHP Operators
PHP if...else...elseif Statements
Switch Statement
PHP Loops
PHP Arrays
Superglobals
PHP Coding Standards
PHP Form Handling
PHP Form Validation
PHP URLs Validation
PHP Form Required Validation
Complete Form Example
PHP File Functions Open/Read
PHP File Create/Write
PHP File Upload
PHP Cookies Handling
PHP Session Handling
PHP filter_var() Function
PHP Validation Filters
PHP Sanitization Filters
Using Filters
Filters Advanced
JSON
PHP Date and Time
MySQL Database
MySQL Connect
MySQL Commands-Creating a Table
MySQL Commands-Inserting The data
MySQL Commands-Prepared Statement
MySQL Commands-Selecting The Data
MySQL Commands-Where and Order By
MySQL Commands-Deleting And Updating The Data
PHP-OOP Introduction
PHP-Classes/Objects
PHP-Constructor/Destructor
PHP-Access Modifiers
PHP-Inheritance
PHP-Inheritance and Protected Access Modifier
PHP-Overriding Inherited Methods
PHP-Final keyword
PHP-Abstract Classes
PHP-Constants
PHP-Traits
PHP-Static Methods and Properties
Introduction to Functions
Defining A function
Returning Values From A Function
Dynamic Function Calls
Variable Scope
Understanding Arguments Or Parameters
Testing For A Function Existence
Returning Multiple Values From A Function
Making practical Use By Building Code Libraries For Code Re-usability
Using Include() And Require()
Operators are the symbols that take values called operands and yield a result or another value. In Php, operators perform certain operations on values and variables and are classified into below categories.
1. Arithmetic operators – These operators perform mathematical calculations such as addition, subtraction, multiplication etc. In PHP we have +, -, *, /, %, ** for addition, subtraction, multiplication, division, modulus and exponentiation respectively.
2. Assignment operators – These operators write a value to any variable, and the most common assignment operator is “=” that assigns the right value of the expression to left operand. In Php, we have =, +=, -=, *=, /=, %= that assigns the value after the arithmetic operation written before “=”.
3. Increment/Decrement operators – In PHP, increment operators are used to increment the value of a variable and decrement operator is used to decrement the variable value. We have four operators ++$x for pre-increment, $x++ for post-increment, --$x for pre-decrement, and $x-- for post-decrement.
4. Comparison operators - These operators are used to compare two values and we have == for equal, != and <> for not equal, === for identical, !== for non-identical, > for greater than, < for less than, >= for greater than equal to, <= for less than equal to, and < = > for spaceship that returns a value less than, equal to or greater than 0.
5. Logical operators – These operators help to combine conditional statements in Php, and we have and, or, xor, &&, ||, ! for and, Or, Xor, and, or, not operations respectively.
6. Arrays operators – To compare arrays, we use array operators in PHP. In php, + is for union, == for equality, === for identity, != and <> for inequality, and !== for non-identity array operations.
7. String operators – For strings, php has two special operators ‘.’ and ‘.=’. ‘.’ mean concatenation and ‘.=’ is for concatenation assignment that appends right value to left value.
8. Conditional assignment operators – These operators are used to set any value in php based on some condition. In Php we have two operators ?: for ternary e.g. $x= 20>2?”Y”:” N” returns Y if the expression is true and N if false. Another operator is ?? for null coalescing. e.g. $y= $y??” no value”; if y has a value, it will show the value else no value.
Don't miss out!