Learn PHP
A free, interactive online PHP course. You write PHP on every lesson, with AI hints when something warns and a free certificate when you finish.
31,555+ codders enrolled
230 lessons206 challenges1,394 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Audio narration on every lesson
Quizzes to test your knowledge
Free certificate of completion
Syllabus
Section 1
Fundamentals
Start sectionStartExpandCollapseBuild a strong foundation with essential concepts and basic skillsIntroduction to PHP
5 lessons431Variables and Data Types
9 lessons663Basic Operators
8 lessons852Comparison & Logical Operators
5 lessons532Conditional Logic
6 lessons639Arrays Part 1 - Indexed
7 lessons645Arrays Part 2 - Associative
6 lessons540Loops
7 lessons746Project: Simple To-Do List
Project7 lessons1Functions
8 lessons857Final Challenges
3 lessons3Section 2
Logic & Flow
Start sectionStartExpandCollapseDevelop problem-solving skills and create dynamic, interactive programsAdvanced Functions
9 lessons965Advanced Array Manipulations
10 lessons1066Sorting Arrays
7 lessons747Multi-dimensional Arrays
6 lessons639Student Gradebook
6 lessons6Higher-Order Array Functions
7 lessons745Working with Dates and Times
6 lessons539Error and Exception Handling
7 lessons650Event Scheduler
Project6 lessons1Final Challenges
4 lessons4Section 3
Object Oriented Programming
Start sectionStartExpandCollapseDiscover how to organize code with classes, objects, and reusable structuresFundamentals of OOP
9 lessons969Namespaces & Autoloading
5 lessons534Class Properties
6 lessons644Inheritance
6 lessons644Interfaces & Contracts
6 lessons644Polymorphism
5 lessons536Encapsulation
6 lessons645Magic Methods
7 lessons753Traits
5 lessons544Advanced OOP Concepts
7 lessons761Type System & Error Handling
7 lessons754Design Patterns Part 1
5 lessons546Design Patterns Part 2
7 lessons764Project: Library Management
Project6 lessons1Final Challenges
4 lessons4
PHP courses
Hands-on PHP courses, free to start in your browser.
Beginner Challenges - Practice Basic Concepts
PopularPut your beginner coding knowledge to test and try to solve this programming challenges, use any language you want, Happy Coding!
Certificate on completion
- 20
- 20
Coding Problems
PopularPut your programming problem solving skills to the test using the exercises with different difficulties in this course. Designed for coders with some prior knowledge of the basic syntax in any programming language.
Certificate on completion
- 32
- 31
Stack - Data Structures Series #1
In this course, you will learn about the Stack data structure, create a Stack from zero using your preferred language, and practice coding challenges with it!
- 13
- 6
- 1
Coding Problems: Volume 2
Put your programming problem solving skills to the test using the exercises with different difficulties in this course. Designed for coders with some prior knowledge of the basic syntax in any programming language. This course is an extension of the first Coding Problems
Certificate on completion
- 25
- 24
Hash Tables - Data Structures Series #4
In this course, you will learn about the Hash Table data structure, create a Hash Table from zero using your preferred language, and practice coding challenges with it!
Certificate on completion
- 14
- 12
Linked List - Data Structures Series #5
In this course, you will learn about the Linked List data structure, create a Linked List from zero using your preferred language, and practice coding challenges with it!
Certificate on completion
- 14
- 6
- 1
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Coding Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
Code Anywhere, Anytime
Take your coding journey on the go! No setup, no downloads - just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.
You're Not Alone in This
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time - reassigning the name simply points it to a new value.
Prove Your Skills
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn PHP with Coddy
- Run real PHP code in your browser. No XAMPP, no Apache, no local server to configure. Each lesson runs your PHP server-side and shows the output instantly.
- PHP for the web the way it's actually used today: variables, control flow, functions, arrays, includes, forms, superglobals, sessions, and basic database patterns. The PHP foundations every web developer needs.
- AI hints help you debug PHP errors and untangle warnings without giving the answer away, so common issues like undefined indexes and quoting bugs become learning moments instead of dead ends.
- Free PHP certificate when you finish the course. A credible proof point for web-development, WordPress, and Laravel roles where PHP is still a baseline expectation.