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 Profile a PHP ScriptThis tutorial introduces how to profile a PHP script. How to Create Table in PHPThis tutorial introduces how to create table in PHP. How to Loop Through Associative Array in PHPThis tutorial introduces how to loop through an associative array and get the key in PHP. How to Implement Linked List in PHPThis tutorial introduces the implementation of linked list in PHP. How to Work With DatePicker in PHPThis tutorial discusses how to work with DatePicker in PHP using built-in functions and a third-party PHP library. How to Require_once vs Include in PHPThis tutorial explains and details how and when to use require, include, require_once and include_once within a PHP file. How to Include Absolute and Relative Paths in PHPThis tutorial details and explains how to use the absolute and relative path in PHP. How to Calculate Average of Numbers in PHPThis tutorial explains how to calculate a series of numbers, float, or integers in PHP. How to Round Floating-Point Numbers in PHPThis tutorial demonstrates how to round the floating-point numbers in PHP. How to Parse HTML in PHPThis tutorial details and explains how to use HTML and webpages using PHP built-in functions and third-party libraries. How to Use PHP With Visual Studio CodeThis tutorial details the process of installing Visual Studio Code, configuring the PHP interpreter and using extension. How to Hash Password in PHPThis tutorial will show you how to carry out password hashing and verification in your PHP code. How to Use jQuery in PHPThis tutorial explains how to use jQuery within your PHP code to increase functionality. How to Upload Multiple Images in PHPThis tutorial details how to use HTML and PHP to upload multiple images at once. How to Convert CSV File to Array in PHPThis tutorial explains how to convert the popular CSV file to array within PHP with the help of built-in functions. How to Parse RSS and Atom Feeds With PHPThis tutorial shows and explains how to parse RSS and Atom feeds with PHP built-in functions and libraries. How to Use CSS Style in PHPThis article will teach you three methods that'll help you use CSS styles in PHP. The first method is via a PHP-only file and the second is to embed PHP in an HTML+CSS file. Then the third method will use inline CSS in PHP echo statements. How to Get UTC Time in PHPThis article teaches you how to get UTC time in PHP using the date_default_timezone_set(), gmdate(), strtotime(), date() methods, and the DateTime object. How to Save Image From URL in PHPThis article teaches five methods to save an image from a URL in PHP. These methods will use functions like file_put_contents(), copy(), fopen(), fread(), fwrite(), and gzdecode(). How to Perform HTTP Authentication Using PHP CurlThis tutorial introduces how to perform basic HTTP authentication using the PHP Curl. How to Reverse Array in PHPThis tutorial demonstrates how to reverse an array in PHP. How to Divide Integer in PHPThis tutorial demonstrates how to divide integers in PHP. How to Convert Military Time to Standard Time in PHPThis tutorial demonstrates how to convert military time to standard time in PHP. How to Perform Static Code Analysis in PHPThis tutorial shows how to perform static code analysis in PHP.