PHP Tutorials
A collection of tutorials for learning PHP.
- How to create a router in PHP to handle different request types, paths, and request parameters.
- Flushing and output buffering goes hand in hand, and in this article I try to examine the benefits and disadvantages to flushing.
- How to use the AVIF image format in PHP; A1 or AVIF is a new image format that offers better compression than WebP, JPEG and PNG, and that already works in Google Chrome.
- How much faster is C++ than PHP to increment and display a counter in a loop?
- Detecting the request method used to fetch a web page with PHP, routing, HTTP responses, and more.
- How to create a custom error handler for PHP that handles non-fetal errors.
- Knowing if a command exists before trying to call it from a PHP script is a useful way to prevent errors; testing if a command exists can be done using the command -v utility in linux, and where in Windows.
- How to make PHP sleep for milliseconds rather than seconds.
- Tutorial on how to traverse a Multidimensional array using php7.1 syntax
- How to reorder array elements in PHP, moving elements up or down one step at a time.