Wiki
PHP
Notes, guides and references – 30 entries in 5 categories.
- PHP Array Functions Creating, reading, changing, searching, sorting and transforming arrays in PHP with the default functions such as count, in_array, array_map, array_filter, usort and array_column.
- PHP Basics: Syntax, Variables and Output The core of PHP: tags, variables, types, constants, operators and the default commands for output and checking values (echo, var_dump, isset, empty, unset, ??).
- PHP Control Structures and Functions Conditions, loops, match, include/require and how to write functions in PHP, including types, default values, named arguments, closures and arrow functions.
- PHP Databases with PDO Connecting to MySQL/MariaDB, PostgreSQL or SQLite with PDO, running safe prepared statements, fetching results and using transactions.
- PHP Date and Time Working with dates in PHP: time zones, date() format characters, timestamps, strtotime, and the DateTimeImmutable, DateInterval and diff classes.
- PHP Errors, JSON and Debugging Error reporting settings, exceptions with try/catch/finally, logging, JSON encoding and decoding, and the PHP command-line tools (php -l, php -S, Composer).
- PHP Files and Directories Reading and writing files, line-by-line access, CSV, checking and managing files and folders, path helpers and handling uploads in PHP.
- PHP Forms, Sessions, Cookies and Security Superglobals, handling GET/POST forms, validating input, headers and redirects, sessions, cookies, password hashing and the core security functions in PHP.
- PHP Math and Number Functions Rounding, min/max, integer division, powers, random numbers, number formatting, type conversion and number-system conversion in PHP.
- PHP String Functions The most-used PHP string functions: length, case, trimming, searching, replacing, splitting, formatting, multibyte (UTF-8) handling and regular expressions.