Practical solutions

PHP Howtos How-To Guides

Solve the problem. Keep building. Collection of PHP how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Create a PHP Dropdown ListThis article will introduce the dropdown list and how to create one with PHP. How to Insert Special Characters Into a Database in PHPThis tutorial will introduce the mysqli_real_escape_string() function to insert special characters into a database in PHP. We will compare inserting data with and without the mysqli_real_escape_string() function. How to Validate Phone Number in PHPThis tutorial demonstrates various way on how to validate phone numbers in PHP. How to Serialize Function in PHPThis tutorial demonstrates the use of serialize(), built-in function in PHP. How to Resize Image Resize Upload in PHPThis tutorial demonstrates how resize an image on upload with given width and height in PHP. How to Group Arrays in PHPThis tutorial demonstrates how to group elements of a multidimensional array according to a particular column in PHP. How to Generate Image using PHPThis tutorial demonstrates how to generate images using GD library in PHP. How to Concat PHP ArraysThis tutorial demonstrates how to concat two or more arrays in PHP. How to Add Element to an Associative Array in PHPThis tutorial demonstrates how to add an element to an associative array in PHP. How to Display Array Values in PHPThis tutorial demonstrates how to display the values of an array using different methods in PHP. How to Flatten Array in PHPThis tutorial demonstrates how to flatten multidimensional arrays in PHP. How to Generate UUID in PHPThis tutorial demonstrates how to generate different versions of UUIDs in PHP. How to Use ODBC Functions in PHPThis article introduces how to use ODBC functions in PHP. How to Set Maximum Execution Time in PHPThis tutorial introduces how to increase the maximum execution time of a script in PHP. How to Get Random Array Item in PHPThis tutorial introduces how to get a random item from an array in PHP. How to Delete Directory in PHPThis tutorial introduces how to delete a directory in PHP. How to Count Files in a Directory in PHPThis tutorial introduces how to count files in a directory in PHP. How to Set Up PHP-FPM and Nginx Docker ContainersIn this tutorial, we will discuss how you can set up your PHP, PHP-FPM and NGINX containers when developing locally on Docker. How to Minify HTML Output of the PHP PageIn this article, we will discuss the process of minifying your HTML output for PHP pages. We minify the output to improve the overall website performance. How to Download PDF Files in HTML With PHPYou can download PDF files in HTML links using PHP. How to Convert a PDF Document to a Preview Image in PHPThis tutorial will discuss two methods you can use to convert a PDF document to a set of preview images in PHP. How to Compare Two Arrays in PHPThis tutorial explains and details how to compare two arrays using operators and functions in PHP. How to Break Out of the Foreach Loop in PHPThis tutorial explains and details in simple steps how you can break out of the foreach loop in PHP. How to Add Array to Array in PHPThis tutorial explains and details how to add array to another array in PHP include older versions