PHP
PHP Typing Practice Chapters
150 exercises across 15 chapters, ordered from basic syntax to advanced patterns. Each section is real PHP code, and your best speed and accuracy are saved per section.
Basic Syntax
0/10 completedBeginner
Learn PHP basic syntax and data types
Variables & Data Types
Basic Operators
Control Flow
Loops
Arrays
Functions
String Operations
Input/Output
Type Casting
Mixed Basic Practice
Control Flow
0/10 completedBeginner
Master PHP control flow statements
If-Else Statements
Switch Statements
For Loops
While Loops
Break and Continue
Match Expression
Null Coalescing
Ternary Operator
Error Handling
Mixed Control Flow Practice
Strings & Regex
0/10 completedBeginner
String functions, formatting, and preg_* patterns
String Functions
Modern String Checks
Implode and Explode
sprintf and number_format
Heredoc and Nowdoc
preg_match
preg_replace
Multibyte Strings
Comparing Strings
Mixed String Practice
Functions
0/10 completedIntermediate
Learn about functions in PHP
Function Basics
Default Parameters
Type Declarations
Variable Functions
Anonymous Functions
Arrow Functions
Closures
Generators
Return Types
Mixed Function Practice
Arrays and Collections
0/10 completedIntermediate
Working with arrays and collections in PHP
Array Basics
Associative Arrays
Array Operations
Array Sorting
Array Searching
Array Manipulation
Multidimensional Arrays
Array Destructuring
Array Functions
Mixed Array Practice
Iterators & Generators
0/10 completedIntermediate
Generators, SPL interfaces, and functional array work
Generators
Yield with Keys
Yield From
IteratorAggregate
ArrayAccess
array_map and array_filter
array_reduce
Sorting with Spaceship
SPL Data Structures
Mixed Iterator Practice
Object-Oriented Programming
0/10 completedIntermediate
Master PHP OOP concepts
Classes and Objects
Inheritance
Interfaces
Traits
Abstract Classes
Static Members
Magic Methods
Namespaces
Type Hinting
Mixed OOP Practice
Traits, Interfaces & Namespaces
0/10 completedIntermediate
Code reuse and organisation beyond plain classes
Interfaces
Abstract Classes
Traits
Trait Conflict Resolution
Namespaces and Use
Static Members and Constants
Readonly Properties
Closures and Arrow Functions
Magic Methods
Mixed Trait Practice
Error Handling
0/10 completedIntermediate
Exceptions, custom errors, and handlers
Try, Catch, Finally
Multiple Catch Blocks
Custom Exceptions
Exception Chaining
Throw as Expression
Error Handlers
TypeError and ValueError
Logging Errors
Assertions
Mixed Error Practice
Dates, JSON & Files
0/10 completedIntermediate
DateTime, JSON, and the filesystem
DateTime
DateInterval and Periods
Timezones
strtotime and date
JSON Encode and Decode
JsonSerializable
Reading and Writing Files
fopen and CSV
Filesystem Functions
Mixed Date and File Practice
Web Development
0/10 completedIntermediate
PHP web development concepts
HTTP Basics
Forms Handling
Sessions
Cookies
File Uploads
Basic Routing
Template System
AJAX Handling
API Endpoints
Mixed Web Practice
Database Integration
0/10 completedIntermediate
Working with databases in PHP
MySQL Connection
PDO Connection
Prepared Statements
Transactions
Fetching Data
Inserting Data
Updating Data
Deleting Data
Error Handling
Mixed Database Practice
Security Practices
0/10 completedAdvanced
PHP security best practices
Input Validation
SQL Injection Prevention
XSS Prevention
CSRF Protection
Password Hashing
File Security
Session Security
Secure Error Handling
API Security
Mixed Security Practice
Modern PHP Features
0/10 completedAdvanced
Modern PHP features and practices
Named Arguments
Attributes
Union Types
Nullsafe Operator
Match Expression
Constructor Promotion
Enums
Readonly Properties
First-Class Callables
Mixed Modern Practice
Testing
0/10 completedAdvanced
Testing PHP applications
