Knowledge baseExam Center
ENEnglish
Choose language13

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
Knowledge base for this technology

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.

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
  1. 01LESSON
    LESSON 1: Filtering by task count – foreach vs array_filterAvailable now
  2. 02LESSON
    LESSON 2: Filtering by lead – foreach vs array_filterLocked
  3. 03LESSON
    LESSON 3: Project with the most tasks – loop vs array_reduceLocked
  4. 04LESSON
    LESSON 4: Sum of tasks – loop vs array_sum + array_columnLocked
  5. 05LESSON
    LESSON 5: Project details by name – foreach+if vs array_searchLocked
  6. 06LESSON
    LESSON 6: Report: number of projects per leader – loop vs array_reduceLocked
  7. 01QUIZ
    Quiz 1: lessons 1–6Locked
  8. 07LESSON
    LESSON 7: Shortest project name – loop vs array_reduceLocked
  9. 08LESSON
    LESSON 8: Does the project exist — loop vs in_array/array_searchLocked
  10. 09LESSON
    LESSON 9: Average tasks per project – loop vs array_sum/countLocked
  11. 10LESSON
    LESSON 10: List of project names – loop vs array_columnLocked
  12. 11LESSON
    LESSON 11: Changing the leader – foreach+if vs array_mapLocked
  13. 12LESSON
    LESSON 12: Removing a project by name – loop with unset vs array_filterLocked
  14. 02QUIZ
    Quiz 2: lessons 7–12Locked
  15. 13LESSON
    LESSON 13: Adding a project – the [] operator vs array_pushLocked
  16. 14LESSON
    LESSON 14: Incrementing task counts – foreach vs array_mapLocked
  17. 15LESSON
    LESSON 15: Range filters and predicates (min–max, divisibility)Locked
  18. 16LESSON
    LESSON 16: Transforming names (uppercase) – foreach vs array_mapLocked
  19. 17LESSON
    LESSON 17: Sorting by number of tasks (ascending/descending) – usortLocked
  20. 03QUIZ
    Quiz 3: lessons 13–17Locked
  21. 18LESSON
    LESSON 18: Unique leaders — loop with a buffer vs array_reduceLocked
  22. 19LESSON
    LESSON 19: Team summary — clean code vs one-linerLocked
  23. 20LESSON
    LESSON 20: Exception basics (try/catch) in array practiceLocked
  24. 21LESSON
    LESSON 21: Array diagnostics – isset, array_key_exists, the ?? operatorLocked
  25. 22LESSON
    LESSON 22: Mutability and copies – how copy-on-write worksLocked
  26. 04QUIZ
    Quiz 4: lessons 18–22Locked
  27. 23LESSON
    LESSON 23: Router (path simulation) — you will map a "URL" to a function actionLocked
  28. 24LESSON
    LESSON 24: Controllers as functions — small actions that return a responseLocked
  29. 25LESSON
    LESSON 25: In-memory session (simulating $_SESSION)Locked
  30. 26LESSON
    LESSON 26: Cookies as headers in a structure — simulating setting and readingLocked
  31. 27LESSON
    LESSON 27: CSRF token (deterministic) – generation and verificationLocked
  32. 05QUIZ
    Quiz 5: lessons 23–27Locked
  33. 28LESSON
    LESSON 28: Password hashing — registration and login without a databaseLocked
  34. 29LESSON
    LESSON 29: Roles and permissions (RBAC light) in a routerLocked
  35. 30LESSON
    LESSON 30: A repository without a database — a data access layer built on arrays and indexesLocked
  36. 31LESSON
    LESSON 31: Sorting and pagination in a repository (limit/offset, sort by field)Locked
  37. 32LESSON
    LESSON 32: Uniqueness validation and integrity in an array repositoryLocked
  38. 06QUIZ
    Quiz 6: lessons 28–32Locked
  39. 33LESSON
    LESSON 33: Transactions (snapshot/rollback) — pseudo-commit and rollback on copies of structuresLocked
  40. 34LESSON
    LESSON 34: Recording events in a circular array bufferLocked
  41. 35LESSON
    LESSON 35: Deterministic configuration and settings variants without filesLocked
  42. 36LESSON
    LESSON 36: Autoload (simulation) and a factoryLocked
  43. 37LESSON
    LESSON 37: PSR-style naming and namespacesLocked
  44. 07QUIZ
    Quiz 7: lessons 33–37Locked
  45. +EXAM
    Confirm 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