PHP Basics
Learn PHP from scratch: variables, conditionals, loops, arrays and functions. Write and run code right in your browser — 20 lessons, 25 exercises and a certificate.
What You'll Learn
This Course Includes
Curriculum
9 lessons · 20 lessons · 25 exercises
Introduction to PHP
Learn what PHP is, where it's used and write your first code
- What is PHP? +10 XP
- Getting Started +10 XP
- First Program +15 XP
Variables & Data Types
Learn to create variables and work with different data types
- Variables +10 XP
- Data Types +10 XP
- Working with Variables +15 XP
Strings
Learn to work with text: join, search, replace
- Working with Strings +10 XP
- String Practice +15 XP
Numbers & Math
Arithmetic operations and PHP math functions
- Arithmetic & Functions +10 XP
- Number Practice +15 XP
Conditionals
Learn to make decisions in code: if, else, switch
- if, else and switch +10 XP
- Conditionals Practice +15 XP
Loops
Repeat actions with for, while and foreach
- for, while and foreach +10 XP
- Loop Practice +15 XP
Arrays
Storing and processing collections of data
- Arrays in PHP +10 XP
- Array Practice +15 XP
Functions
Create your own commands — functions with parameters and return values
- Creating Functions +10 XP
- Function Practice +15 XP
Final
Let's wrap up and solve final challenges
- What's Next? +10 XP
- Final Challenges +20 XP
Requirements
No prior knowledge required — we start from scratch
Course FAQ
Do I need programming experience?
How do lessons work?
How long does the course take?
Will I get a certificate?
Ready to start?
Sign up for free and start coding right now. Your first result in 5 minutes.
Start Learning