Log In
Join
for free
Log In
Join
for free
Back To Module Home
Learn PHP from Scratch
0% completed
Getting Started
Hello World
"Hello World" Explained
Quiz
Challenge: Displaying Output
Variables
Variables and Data Types
Quick Quiz on Variables
Variable Variables
Constants
Challenge: Make Variables
Operators
Introduction to Operators
Arithmetic Operators
Precedence and Associativity
Comparison Operators
Logical Operators
Assignment Operators
Conditional Statements
if-else Statement
if-elseif-else Statement
Switch Statement
Ternary Operator
Quiz
Challenge 1: Even or Odd
Challenge 2: Making a Calculator
Loops
Introduction to Loops
while Loops
do...while Loop
For Loop
Foreach Loop
Equivalence of Looping Structures
Infinite Loops
Quiz
Challenge 1: Multiplication Table of a Number
Challenge 2: Fibonacci Sequence up to n Number Of Terms
Challenge 3: Pyramid Printing By Using For Loop
Functions
Introduction
Passing Arguments in Functions
Pass by Value
Pass by Reference
Variable Scope
Challenge 1: Sum of two Numbers
Challenge 2: Letter Grade to GPA
Recursion
Challenge 3: Fibonacci Sequence
Quick Quiz on Functions
Strings
Strings
String Operators
Built-in Functions
Challenge: Check Substring
Quiz
Arrays
Arrays and their Operations
Challenge 1: Find the Maximum Value
Multidimensional Array
Challenge 2: Print a Matrix
Quiz 1
Adding Elements in an Array
Removing Elements from Arrays
Sorting Arrays
Merging Arrays
Quiz
PHP Assessment 1
Classes and Inheritance
Introduction To Classes
Defining Classes
$this and self
Constructors & Destructors
Method and Property Visibility
Inheritance
Quiz
Exercise 1: Calculating Area
Exercise 2: Students Average Marks
Exception Handling
PHP Exceptions
The Exception Class
Custom Exceptions
Quiz
PHP Assessment 2
Conclusion
Final Remarks
Assignment Operators
We'll cover the following
Basic Assignment
Example
Explanation
Combined Assignment
Example
Other Combined Assignment Operators
Example
Quick Quiz on Assignment Operators
Basic Assignment
#
PHP allows you to do the basic arithmetic assignment by using the
=
operator.