All courses

Course

Learn PHP

Powering a huge share of the web. 8 units that take you from your first program to the language's advanced features.

Units
8
Topics
41
Questions
210
Challenges
23
1

Unit 1

Getting started

Output, variables, numbers and strings

  1. Hello, PHP
  2. Variables
  3. Types
  4. Numbers
  5. Building strings
  6. String functions
  7. Unit quiz and coding challenge
2

Unit 2

Control flow

Comparisons, match and loops

  1. Conditions
  2. Comparing values
  3. switch
  4. match
  5. Loops
  6. Unit quiz and coding challenge
3

Unit 3

Functions

Types, arguments and closures

  1. Functions
  2. Type declarations
  3. Optional arguments
  4. Passing by reference
  5. Variadic functions
  6. Static variables
  7. Closures
  8. Arrow functions
  9. Unit quiz and coding challenge
4

Unit 4

Arrays

Lists, maps and array functions

  1. Indexed arrays
  2. Associative arrays
  3. Transforming arrays
  4. Sorting arrays
  5. Unit quiz and coding challenge
5

Unit 5

Object-oriented PHP

Classes, inheritance, interfaces, traits and enums

  1. Classes
  2. Static members
  3. Inheritance
  4. Interfaces
  5. Traits
  6. Enums
  7. Unit quiz and coding challenge
6

Unit 6

Errors and nulls

Exceptions and null-safe code

  1. Exceptions
  2. Null handling
  3. Type juggling
  4. Unit quiz and coding challenge
7

Unit 7

PHP on the web

Requests, security and databases

  1. Request input
  2. Escaping output
  3. Sessions
  4. Password hashing
  5. Databases with PDO
  6. Unit quiz and coding challenge
8

Unit 8

Modern PHP

Namespaces, Composer, JSON and dates

  1. Namespaces
  2. Composer
  3. JSON
  4. Dates
  5. Unit quiz and coding challenge

Finale

Course exam

100 items from the whole course: 50 questions with choices, 35 typed answers and 15 coding challenges that mix topics.