How-to articles, tricks, and solutions about PHP
Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning
When building a Docker image with PHP and the zip extension, you may see the warning.
How to add a print button to a web page
To add a print button to a web page using PHP, you can use the following steps:
Laravel 5.3 multiple file uploads
In Laravel 5.3, you can use the Request object's file method to handle multiple file uploads.
How To Use setInterval in PHP?
setInterval is a JavaScript function and cannot be used directly in PHP.
What's the difference between ++$i and $i++ in PHP?
In PHP, "++$i" is the pre-increment operator and "$i++" is the post-increment operator.
laravel - get parameters from http request
In Laravel, you can use the $request object to access parameters from an HTTP request.
WSDL to PHP with Basic Auth
There are a few ways to convert a WSDL file to PHP code with Basic Auth.
How to benchmark efficiency of PHP script
There are several ways to benchmark the efficiency of a PHP script, including:
How to properly set up a PDO connection
To set up a PDO connection, you will need to do the following:
Run process with realtime output in PHP
In PHP, you can use the proc_open function to run a process and read its output in real-time.