🛤️ Part of Galhoom Path · Track 1 — Study (Learning Series #1)
This repository belongs to the Galhoom Path organization (Study · Foundations · Problem Solving · Interview Prep · Projects).
→ Organization home · Next in series: php-oop
╔══════════════════════════════════════════════════════════════════════╗
║ ║
║ 🐘 P H P F U N D A M E N T A L S D O C U M E N T A T I O N 📖 ║
║ ║
║ Lectures ──▶ Interviews ──▶ Visual Maps ──▶ Final Project ║
║ ║
╚══════════════════════════════════════════════════════════════════════╝
🎯 This repo is for those who want to study the core PHP language from zero with PHP 8.6+. All lectures follow the official PHP Manual, with interview questions, visual maps, and a final project to master it all. It is the first link in a series: PHP Fundamentals → PHP OOP → OOD.
📊 My Progress · 🚀 Get Started · 📚 Lectures · 💼 Interviews · 🗺️ Visual Maps · 🏗️ Project
| Section | What’s inside | |
|---|---|---|
| 📊 | My Progress | Status, lecture list, milestones |
| 🎯 | Purpose | Why this book exists |
| 👤 | Who This Is For | Is this for you? |
| 🗺️ | Learning Path | Lectures → Interviews → Visual Maps → Project |
| 📚 | Track 1 — Lectures | 30 sessions in 3 parts |
| 💼 | Track 2 — Interviews | 45 questions |
| 🗺️ | Track 3 — Visual Maps | 12 diagrams |
| 🏗️ | Track 4 — Final Project | BookIt Lite |
| 🚀 | How to Start | Your first step |
| 📁 | Repository Structure | Folder map |
| ⚙️ | Requirements | What you need |
| 🔄 | Staying Current | Always on the latest version |
| 🔗 | Official Sources | Trusted references |
| Track | Progress | Status |
|---|---|---|
| 📚 Lectures | 0 / 30 | 🟡 In Progress — Lecture 01 next |
| 💼 Interview Questions | 0 / 45 | 🔒 Locked — starts after Lecture 30 |
| 🗺️ Visual Maps | 0 / 12 | 🔒 Locked — starts after interviews |
| 🏗️ Final Project | 0 / 13 milestones | 🔒 Locked — starts after visual maps |
Lecture Progress
| ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ | ⬜ |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0%
🎯 Current focus: Lecture 01 — Why Static Pages Are Not Enough 🏁 Last completed: — 🏅 Milestone 1 (after Lecture 05) — ⬜ Not yet
📗 Part 1 — Foundations · Lectures 1–10 · Part-1-Foundations/
| # | Folder | Topic | Status |
|---|---|---|---|
| 01 | why-php |
Why Static Pages Are Not Enough | 🟡 Next |
| 02 | setup-and-first-script |
Installing PHP 8.6 and Your First Script | ⬜ |
| 03 | variables-and-constants |
Variables and Constants | ⬜ |
| 04 | data-types |
Scalar Types and null |
⬜ |
| 05 | Milestone-operators |
Operators (Milestone) | ⬜ |
| 06 | type-juggling-and-casting |
Type Juggling and Casting | ⬜ |
| 07 | strings-and-interpolation |
Quotes, Interpolation, Heredoc, Nowdoc | ⬜ |
| 08 | string-functions-and-multibyte |
String Functions and mb_* |
⬜ |
| 09 | conditionals-and-match |
if, switch, and match |
⬜ |
| 10 | loops |
Loops | ⬜ |
📘 Part 2 — Core PHP · Lectures 11–20 · Part-2-Core-PHP/
| # | Folder | Topic | Status |
|---|---|---|---|
| 11 | arrays |
Indexed, Associative, and Nested Arrays | ⬜ |
| 12 | array-functions |
Array Functions (8.5+ array_first; 8.6 clamp) |
⬜ |
| 13 | functions |
Writing Your Own Functions | ⬜ |
| 14 | function-arguments |
Default, Named, Variadic, By-Reference | ⬜ |
| 15 | Milestone-scope-and-static-variables |
Scope and Static Variables (Milestone) | ⬜ |
| 16 | anonymous-and-arrow-functions |
Anonymous and Arrow Functions | ⬜ |
| 17 | callbacks-and-first-class-callables |
Callbacks and First-Class Callables | ⬜ |
| 18 | pipe-operator |
The Pipe Operator (PHP 8.5+; pairs with 8.6 PFA) | ⬜ |
| 19 | generators |
Generators and yield |
⬜ |
| 20 | include-and-require |
Splitting Code Into Files | ⬜ |
📙 Part 3 — Web PHP · Lectures 21–30 · Part-3-Web-PHP/
| # | Folder | Topic | Status |
|---|---|---|---|
| 21 | http-and-superglobals |
HTTP, $_SERVER, $_GET, Headers |
⬜ |
| 22 | forms-and-post |
Forms and POST | ⬜ |
| 23 | Milestone-validation-and-escaping |
Validation and Output Escaping (Milestone) | ⬜ |
| 24 | sessions-and-cookies |
Sessions and Cookies | ⬜ |
| 25 | passwords-and-csrf |
Password Hashing and CSRF Tokens | ⬜ |
| 26 | files-and-uploads |
Files and Uploads | ⬜ |
| 27 | json-and-dates |
JSON and Dates | ⬜ |
| 28 | regular-expressions |
Regular Expressions | ⬜ |
| 29 | mini-project-notes-app |
Mini-Project: Notes App | ⬜ |
| 30 | Milestone-errors-and-debugging |
Errors, Logging, Debugging (Milestone) | ⬜ |
| Milestone | After Lecture | Status |
|---|---|---|
| 🥉 Milestone 1 — First Calculations | 05 | ⬜ Not yet |
| 🥈 Milestone 2 — Functions and Data | 15 | ⬜ Not yet |
| 🥇 Milestone 3 — Safe Web Form | 23 | ⬜ Not yet |
| 🏆 Milestone 4 — Full Track Complete | 30 | ⬜ Not yet |
📝 Progress is synced from
01-Lectures/README.md. Update both files when a lecture is completed.
PHP powers a large part of the web — from WordPress and Laravel to custom APIs and online stores. Every framework and every OOP concept sits on top of the same core language: variables, types, arrays, functions, and the request/response cycle. Skipping these basics is why many developers get stuck later.
| 🧩 | Learn every core concept of the PHP language using PHP 8.6+ |
| 📜 | Study from official sources — grounded in the PHP Manual, not random blog posts |
| 💬 | Practice interview questions — explain what you know with confidence |
| 🗺️ | Draw visual maps — Mermaid flows and one system map that look clear on GitHub |
| 🏆 | Build a real capstone project — a working web app without a framework |
🚫 No framework. 🚫 No OOP yet. ✅ Just PHP and real skill.
| 🧑💻 You are… | 📈 This book helps you… |
|---|---|
| 🌱 A complete beginner basic computer use, basic HTML is a plus |
Write real PHP programs and small web apps from zero |
| 🔍 A self-taught developer | Fill gaps with a clear, ordered curriculum |
| 🎤 Preparing for PHP interviews | Practice 45 focused core-PHP questions |
| 📜 A learner who wants official sources | Follow lectures tied directly to the PHP Manual |
| 🎓 No CS degree required | ✍️ You write all the code | 📅 One session at a time |
|---|
╭──────────────────────────────────────────────────────────────────╮
│ │
│ 📚 TRACK 1 💼 TRACK 2 🗺️ TRACK 3 🏗️ TRACK 4 │
│ Lectures ──▶ Interviews ──▶ Visual Maps ──▶ Final Project │
│ 30 sessions 45 questions 12 diagrams BookIt Lite │
│ Learn Explain See the system Build │
│ │
╰──────────────────────────────────────────────────────────────────╯
│
▼
🏅 PHP Fundamentals Mastered
⚠️ Complete the tracks in order. Each track builds on the previous one.
| Order | Repository | Covers |
|---|---|---|
| 1 | PHP Fundamentals (this repo) | The core language, functions, and web basics — no OOP |
| 2 | PHP OOP | Classes, objects, interfaces, traits, enums, exceptions, namespaces, PHPUnit |
| 3 | OOD | Design principles and patterns built on OOP |
🧭 Each repo continues where the previous one stops. A topic taught in one repo is never re-taught in another.
| 📂 Track folder | 01-Lectures/ — guide + workspace |
| 🔢 Sessions | 30 lectures — one concept per session |
| 🗂️ Structure | 3 parts: Foundations → Core PHP → Web PHP |
| 📜 Source | Official PHP Manual |
How lectures are organized:
Part-1-Foundations/ → Lectures 01–10
Part-2-Core-PHP/ → Lectures 11–20
Part-3-Web-PHP/ → Lectures 21–30
What you will learn:
🔤 Variables, Types & Strings 🔀 Conditions, match & Loops
🗃️ Arrays & Array Functions 🧰 Functions, Closures & Callables
🔗 Pipe + Partial App (8.5/8.6) ♻️ Generators & yield
🌐 HTTP, Forms & Sessions 🔐 Escaping, Passwords & CSRF
📄 Files, JSON & Dates 🐞 Errors, Logging & Debugging
📊 My current progress: 0 / 30 lectures done — next is Lecture 01 — Why Static Pages Are Not Enough.
| 📂 Track folder | 02-Interview-Questions/ — guide + workspace |
| 🔢 Questions | 45 questions — realistic & practice-based |
| 🔗 Linked to | Every question maps back to a lecture |
What interviewers test:
❓ == vs ===? ❓ What is type juggling?
❓ match vs switch? ❓ Pass by value vs by reference?
❓ include vs require? ❓ GET vs POST?
❓ Sessions vs cookies? ❓ How do you prevent XSS?
❓ How to store passwords? ❓ What is a generator?
💡 Start this track only after completing all 30 lectures.
| Progress | Status |
|---|---|
| 0 / 45 | 🔒 Not started yet |
| 📂 Track folder | 03-Visual-Maps/ — guide + workspace |
| 🔢 Maps | 12 diagrams — Mermaid that looks clear on GitHub, one idea each |
| 🎯 Goal | See PHP as flows, sequences, and one system map before building |
💡 Start this track only after completing all 45 interview questions.
| Progress | Status |
|---|---|
| 0 / 12 | 🔒 Not started yet |
| 📂 Track folder | 04-Final-Project/ — guide + workspace |
| 🎯 Project | BookIt Lite — appointment booking for a small business |
| 🛠️ Stack | Pure procedural PHP · No framework · No database · JSON file storage |
What you will build:
📅 Public booking form with validation
🔐 Admin login with hashed passwords
🛡️ CSRF protection and output escaping
💾 JSON file storage
📊 Filtering, sorting, and reports
📤 CSV export with generators
🐞 Error logging and an assert-based check script
🏅 This is your final proof — not a lecture replacement.
| Progress | Status |
|---|---|
| 0 / 13 milestones | 🔒 Not started yet |
| Step | Action | Where |
|---|---|---|
| 1️⃣ | 📖 Open the lecture guide and start Lecture 01 | 01-Lectures/ → Lecture-01-why-php/ |
| 2️⃣ | ✍️ Type each example into that lecture’s code-N.php files — one session at a time |
Lecture folder |
| 3️⃣ | 💼 After all 30 lectures, practice interview answers | 02-Interview-Questions/ |
| 4️⃣ | 🗺️ Draw the flows and the system map | 03-Visual-Maps/ |
| 5️⃣ | 🏗️ Build the capstone when visual maps are done | 04-Final-Project/ |
| 6️⃣ | ➡️ Continue the series with PHP OOP | Next repository |
✍️ Remember: You write all the code. The guides teach; your practice files live inside each lecture folder.
📦 php-fundamentals/
│
├── 📄 README.md ← 📘 Start here · repo overview
├── 📄 template.md ← Blueprint for every study repo
├── 📂 .cursor/rules/template-sync.mdc ← Keeps template.md in sync
│
├── 📂 01-Lectures/ ← 📚 Track 1 · guide + workspace
│ ├── README.md ← Curriculum & progress
│ ├── Part-1-Foundations/ ← Lectures 01–10
│ │ ├── Lecture-01-why-php/ ← 🟡 you are here
│ │ ├── Lecture-05-Milestone-operators/
│ │ └── ...
│ ├── Part-2-Core-PHP/ ← Lectures 11–20
│ │ ├── Lecture-15-Milestone-scope-and-static-variables/
│ │ └── ...
│ └── Part-3-Web-PHP/ ← Lectures 21–30
│ ├── Lecture-23-Milestone-validation-and-escaping/
│ ├── Lecture-30-Milestone-errors-and-debugging/
│ └── ...
│
├── 📂 02-Interview-Questions/ ← 💼 Track 2 · 45 questions
│ ├── README.md
│ ├── Question-01-what-is-php-and-how-it-runs/
│ └── ...
│
├── 📂 03-Visual-Maps/ ← 🗺️ Track 3 · 12 diagrams
│ ├── README.md
│ ├── Map-01-static-vs-dynamic-pages/
│ └── ...
│
└── 📂 04-Final-Project/ ← 🏆 Track 4 · BookIt Lite
├── README.md
├── public/ ← (student-created)
├── src/ ← (student-created)
└── tests/ ← (student-created)
| 🐘 | PHP 8.6+ (CLI) — installed in Lecture 02 |
| 📖 | Basic computer use; basic HTML is helpful for Part 3 |
| 💻 | A code editor and a terminal |
| 🌐 | A browser — PHP's built-in server (php -S) is used for web lectures |
♻️ This is a living repo. It always follows the latest stable PHP release. When a new version comes out (for example PHP 8.6), this same repo is updated: new features are added to the matching lectures, deprecated features are replaced, and completed lectures get a short catch-up session. The full procedure is in
template.mdSection 4.4.
| Version | Updated on | What changed in this repo |
|---|---|---|
| PHP 8.6 | 2026-10-15 | Initial curriculum, verified against the PHP 8.6 migration guide |
📜 All lecture and interview content is built on trusted, official documentation.
| Source | Link |
|---|---|
| 🐘 PHP Manual — Language Reference | php.net/manual/en/langref.php |
| 🆕 PHP 8.6 Release Notes | php.net/releases/8.6 |
| 🌐 MDN — How the Web Works | developer.mozilla.org/.../How_the_web_works |
| 🌐 MDN — Client–Server Overview | developer.mozilla.org/.../Client-Server_overview |
| 🌐 MDN — HTTP Overview | developer.mozilla.org/.../HTTP/Guides/Overview |
| 🔐 OWASP Cheat Sheet Series | cheatsheetseries.owasp.org |
| 📏 PSR-12 Coding Style | php-fig.org/psr/psr-12 |
🗓️ Last verified: 2026-10-15 against PHP 8.6.
╔══════════════════════════════════════════════════════════════╗
║ ║
║ 📘 Read. ✍️ Write. 💬 Explain. 🗺️ Map. 🏗️ Build. 🏅 Master. ║
║ ║
╚══════════════════════════════════════════════════════════════╝
Documentation provided for learning purposes. Refer to the official PHP Manual for authoritative language behavior.
🐘 Happy Learning!