Learn PHP — Intermediate
Process project collections and build a simple router and in-memory repository in PHP. Practice validation, sessions, permissions, sorting, pagination and organizing code into classes and namespaces.
COURSE OVERVIEWREADY
Lessons: 37
Quizzes: 7
All steps: 44
$Ready to start
What you will learn
- Compare array processing through foreach, array_map, array_filter and array_reduce, and search, group and sort records.
- Build a router that returns responses, handle exceptions, cookies and sessions, and check roles, CSRF tokens and password hashes.
- Create a repository with indexes, maintain data uniqueness and integrity, and combine sorting with pagination and metadata.
- Save snapshots and roll back changes, build an event buffer and configuration, and use factories, autoload, namespaces and aliases.
SYLLABUS / 44
Course curriculum
Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.
37 lessons7 quizzes44 steps total
- 01LESSONLESSON 1: Filtering by task count – foreach vs array_filterAvailable now
- 02LESSONLESSON 2: Filtering by lead – foreach vs array_filterLocked
- 03LESSONLESSON 3: Project with the most tasks – loop vs array_reduceLocked
- 04LESSONLESSON 4: Sum of tasks – loop vs array_sum + array_columnLocked
- 05LESSONLESSON 5: Project details by name – foreach+if vs array_searchLocked
- 06LESSONLESSON 6: Report: number of projects per leader – loop vs array_reduceLocked
- 01QUIZQuiz 1: lessons 1–6Locked
- 07LESSONLESSON 7: Shortest project name – loop vs array_reduceLocked
- 08LESSONLESSON 8: Does the project exist — loop vs in_array/array_searchLocked
- 09LESSONLESSON 9: Average tasks per project – loop vs array_sum/countLocked
- 10LESSONLESSON 10: List of project names – loop vs array_columnLocked
- 11LESSONLESSON 11: Changing the leader – foreach+if vs array_mapLocked
- 12LESSONLESSON 12: Removing a project by name – loop with unset vs array_filterLocked
- 02QUIZQuiz 2: lessons 7–12Locked
- 13LESSONLESSON 13: Adding a project – the [] operator vs array_pushLocked
- 14LESSONLESSON 14: Incrementing task counts – foreach vs array_mapLocked
- 15LESSONLESSON 15: Range filters and predicates (min–max, divisibility)Locked
- 16LESSONLESSON 16: Transforming names (uppercase) – foreach vs array_mapLocked
- 17LESSONLESSON 17: Sorting by number of tasks (ascending/descending) – usortLocked
- 03QUIZQuiz 3: lessons 13–17Locked
- 18LESSONLESSON 18: Unique leaders — loop with a buffer vs array_reduceLocked
- 19LESSONLESSON 19: Team summary — clean code vs one-linerLocked
- 20LESSONLESSON 20: Exception basics (try/catch) in array practiceLocked
- 21LESSONLESSON 21: Array diagnostics – isset, array_key_exists, the ?? operatorLocked
- 22LESSONLESSON 22: Mutability and copies – how copy-on-write worksLocked
- 04QUIZQuiz 4: lessons 18–22Locked
- 23LESSONLESSON 23: Router (path simulation) — you will map a "URL" to a function actionLocked
- 24LESSONLESSON 24: Controllers as functions — small actions that return a responseLocked
- 25LESSONLESSON 25: In-memory session (simulating $_SESSION)Locked
- 26LESSONLESSON 26: Cookies as headers in a structure — simulating setting and readingLocked
- 27LESSONLESSON 27: CSRF token (deterministic) – generation and verificationLocked
- 05QUIZQuiz 5: lessons 23–27Locked
- 28LESSONLESSON 28: Password hashing — registration and login without a databaseLocked
- 29LESSONLESSON 29: Roles and permissions (RBAC light) in a routerLocked
- 30LESSONLESSON 30: A repository without a database — a data access layer built on arrays and indexesLocked
- 31LESSONLESSON 31: Sorting and pagination in a repository (limit/offset, sort by field)Locked
- 32LESSONLESSON 32: Uniqueness validation and integrity in an array repositoryLocked
- 06QUIZQuiz 6: lessons 28–32Locked
- 33LESSONLESSON 33: Transactions (snapshot/rollback) — pseudo-commit and rollback on copies of structuresLocked
- 34LESSONLESSON 34: Recording events in a circular array bufferLocked
- 35LESSONLESSON 35: Deterministic configuration and settings variants without filesLocked
- 36LESSONLESSON 36: Autoload (simulation) and a factoryLocked
- 37LESSONLESSON 37: PSR-style naming and namespacesLocked
- 07QUIZQuiz 7: lessons 33–37Locked
- +EXAMConfirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status