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 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. How to Return User Quota With PHP in LinuxThis tutorial teaches how to return user Quota with PHP in Linux OS. How to Get the Current Date and Time in PHPThis article introduces how to get the current date and time in PHP. It includes date() function, time() function, date_default_timezone_set() function, format() function and setTimezone() function. How to Write Into a File in PHPThis article introduces how to write into a file in PHP. It includes file_put_contents() function, fopen() function, fwrite() function and fclose() function. How to Check if a String Starts With a Specified String in PHPThis article introduces how to check if a string starts with a specified string in PHP. It includes substr() function, strpos() function and strncmp() function How to Use cURL to Get JSON Data and Decode JSON Data in PHPThis article introduces how to use cURL to get JSON data and decode JSON data in PHP. It includes curl_init() function, curl_setopt() function, curl_exec() function and curl_close() function. How to Parse a JSON File in PHPThis article introduces how to parse a JSON file in PHP. It includes file_get_contents() function. How to Convert One Date Format to Another in PHPThis article introduces how to convert one date format to another in PHP. It includes date() function, strtotime() function, createFromFormat() function and format() function. How to Show a Number to Two Decimal Places in PHPThis article introduces how to show a number to two decimal places in PHP. It includes number_format() function, round() function and sprintf() function How to Remove Empty Array Elements in PHPThis article introduces how to remove empty array elements in PHP. It includes array_filter() function, array_diff() function and unset() function. How to Delete an Element From an Array in PHPThis article introduces how to delete an element from an array in PHP. It includes unset() function, array_splice() function and array_diff() function How to Echo or Print an Array in PHPThis article introduces how to echo or print an array in PHP. It includes foreach loop, print_r() function and var_dump() function.