PHP Tutorial — One-Page Cheat Sheet
Server-side scripting that powers the web.
PHP Tutorial
- HOME
- Intro
- Install
- Syntax
- Comments
- Variables
- Echo / Print
- Data Types
- Strings
- Numbers
- Math
- Constants
- Operators
- If…Else
- Switch
- Match (8.0+)
- While Loops
- For Loops
- Foreach Loops
- Break & Continue
- Functions
- Arrow Functions
- Arrays
- Indexed Arrays
- Associative Arrays
- Multidimensional Arrays
- Array Functions
- Sort Arrays
- Superglobals
- Regular Expressions
PHP Forms
PHP OOP
- OOP Intro
- Classes / Objects
- Constructors
- Destructors
- Access Modifiers
- Inheritance
- Abstract Classes
- Interfaces
- Traits
- Static Methods
- Static Properties
- Namespaces
- Enums (8.1+)
PHP Advanced
- Date / Time
- Include / Require
- File Handling
- File Open / Read
- File Create / Write
- File Upload
- Cookies
- Sessions
- Filters
- Callbacks
- JSON
- Exceptions
- Composer
PHP MySQL
- MySQL Intro
- MySQL Connect
- MySQL Create Database
- MySQL Create Table
- MySQL Insert Data
- MySQL Select Data
- MySQL WHERE
- MySQL ORDER BY
- MySQL Delete
- MySQL Update
- MySQL Prepared Statements
- PDO
PHP References
- Keywords
- Array Functions
- String Functions
- Math Functions
- Date/Time Functions
- Filesystem Functions
- MySQLi Functions
- PDO Reference
- JSON Reference
- PCRE Reference