Contents
- Getting started
- Variables
- Variables
- echo and print
- Outputting a structured view of arrays and objects
- Accessing A Variable Dynamically By Name Variable variables
- Data Types
- Global variable best practices
- Default values of uninitialized variables
- Variable Value Truthiness and Identical Operator
- Getting all defined variables
- null, isset, and ??
- Arrays
- Arrays
- Initializing an Array
- Applying a function to each element of an array
- Check if key exists
- Validating the array type
- Iterating multiple arrays together
- Filtering an array
- Removing elements from an array
- Creating an array of variables
- Checking if a value exists in array
- Finding elements with array_find, array_any and array_all
- Sorting an Array
- Splitting a string by separators
- Array intersection
- Adding element to start of array
- Merge or concatenate arrays
- ArrayAccess and Iterator Interfaces
- Whitelist only some array keys
- Imploding an array into a string
- Split array into chunks
- Exchange values with keys
- Combining two arrays: keys from one, values from another
- array reduce
- Destructuring arrays using list
- Sets
- Ranges
- Functional programming
- Functional Programming
- Closures
- Assignment to variables
- Objects as a function
- Using outside variables
- Using built-in functions as callbacks
- Anonymous function
- Pure functions
- Common functional methods in PHP
- First-class callable syntax
- The pipe operator |>
- Scope
- Passing a callback function as a parameter
- Types
- Autoloading primer
- Exception handling and error reporting
- Working with dates and time
- Sending email
- Sending Email
- Sending Email - The basics more details and a full example
- Sending HTML Email Using mail
- Sending Email With An Attachment Using mail
- Sending Plain Text Email Using PHPMailer
- Sending HTML Email Using PHPMailer
- Sending Email With An Attachment Using PHPMailer
- Sending Plain Text Email Using Sendgrid
- Sending Email With An Attachment Using Sendgrid
- Sessions
- Cookies
- Classes and objects
- Classes and Objects
- Method Chaining in PHP
- Class Constants
- Abstract Classes
- Late static binding
- Namespacing and Autoloading
- Interfaces
- Final Keyword
- Method and Property Visibility
- Properties
- Property hooks
- Autoloading
- Calling a parent constructor when instantiating a child
- Dynamic Binding
- Overriding
- this self and static plus the singleton
- Static members
- Defining a Basic Class
- Anonymous Classes
- Attributes
- #[\NoDiscard] and the (void) cast
- Enums
- Immutability
- Composition and delegation
- Lazy objects
- Inheritance
- Polymorphism
- Password hashing
- Output buffering
- Output Buffering
- Basic usage getting content between buffers and clearing
- Nested output buffers
- Running output buffer before any content
- Processing the buffer via a callback
- Using an output buffer to store contents in a file
- Stream output to client
- Capturing the output buffer to re-use later
- Typical usage and reasons for using ob start
- JSON
- SOAP
- Reflection
- cURL
- Using cURL in PHP
- Basic Usage GET Requests
- POST Requests
- Using Cookies
- Using multi curl to make multiple POST requests
- Creating and sending a request with a custom method
- Sending multi-dimensional data and multiple files with CurlFile in one request
- Get and Set custom http headers in php
- TLS and HTTPS
- Dependency injection
- XML
- Regular expressions
- Traits
- Namespaces
- Parsing HTML
- Composer dependency manager
- Magic methods
- Alternative syntax for control structures
- File handling
- Magic constants
- Type hinting
- Multi-threading extension
- Filters, filter functions
- Filters and filter functions
- Validate Email Address
- Validating A Value Is An Integer
- Validating An Integer Falls In A Range
- Validate a URL
- Sanitize filters
- Validating Boolean Values
- Validating A Number Is A Float
- Validate A MAC Address
- Sanitize Email Addresses
- Sanitize Integers
- Sanitize URLs
- Sanitize Floats
- Validate IP Addresses
- Generators
- Operators
- Operators
- Null Coalescing Operator
- Spaceship Operator
- Execution Operator
- Incrementing and Decrementing Operators
- Ternary Operator
- Logical Operators AND and OR
- String Operators . and .=
- Object and Class Operators
- Combined Assignment etc
- Altering operator precedence with parentheses
- Association
- Basic Assignment
- Comparison Operators
- Bitwise Operators
- instanceof type operator
- Constants
- UTF-8
- URLs
- Object serialization
- PHPDoc
- Contributing to PHP Manual
- String parsing
- Loops
- Control structures
- Serialization
- Closure
- Reading request data
- Type juggling and non-strict comparison issues
- Security
- PHP MySQLi
- Command Line Interface CLI
- Command Line Interface CLI
- Handling Program Options
- Argument Handling
- Input and Output Handling
- Return Codes
- Restrict script execution to command line
- Behavioural differences on the command line
- Running your script
- Edge Cases of getopt
- Running built-in web server
- Interactive shell
- Signals and graceful shutdown
- Localization
- Debugging
- Superglobal variables
- Unit testing
- Variable scope
- References
- Compilation errors and warnings
- Installing PHP on Windows
- DateTime class
- Headers manipulation
- Performance
- Common Errors
- Installing on Linux / Unix
- Contributing to PHP Core
- Coding conventions
- Using MongoDB
- Asynchronous programming
- Using SQLSRV
- Unicode Support
- Functions
- Create PDF files
- How to detect client IP address
- YAML
- Image processing with GD
- Multiprocessing
- SOAP Server
- Machine learning
- Cache
- Streams
- Array iteration
- Cryptography
- PDO
- SQLite3
- Sockets
- Outputting the value of a variable
- String formatting
- Compile PHP extensions
- MongoDB
- Manipulating an array
- Executing upon an array
- Processing multiple arrays together
- SPL data structures
- Comments
- IMAP
- Redis
- Imagick
- SimpleXML
- HTTP Authentication
- Recipes
- BC Math Binary Calculator
- Docker deployment
- WebSockets
- APCu
- Design patterns
- Secure remember me
- PHP mysqli
- PHP built-in server
- How to break down a URL
- PSR
- Contributors