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 Write Array to a File in PHPThis tutorial demonstrates how to write arrays to a file in PHP How to Send POST Request in PHPThis tutorial demonstrates how to send POST Request with PHP How to Refresh a Page in PHPThis tutorial demonstrates how to refresh a page periodically in PHP How to Prevent SQL Injection in PHPThis tutorial demonstrates how to prevent SQL injection in PHP How to Use Default in PHP Switch CaseThis tutorial introduces the working mechanism of default in switch case in PHP How to Upload Multiple Files in PHPThis tutorial introduces how to upload multiple files in PHP How to Pass Variable From PHP to JavaScriptThis tutorial introduces how to pass the PHP variables to JavaScript How to Resize Image in PHPThis tutorial introduces how to resize an image in PHP How to Generate Password in PHPThis tutorial introduces how to generate random passwords in PHP How to Find Error Log Location in PHPThis tutorial introduces how to locate error logs in PHP How to Execute PHP Function With onclickThis tutorial introduces how to execute the PHP function with onclick How to Declare Global Variable in PHPThis tutorial introduces how to declare global variable in PHP How to Convert PHP Object to Associative ArrayThis tutorial introduces how to convert PHP object to an associative array How to Validate Email in PHPThis tutorial introduces how to validate email in PHP How to Escape Quotation Marks in PHPThis tutorial introduces how to escape quotation marks in PHP How to Create an Object Without Class in PHPThis tutorial introduces how to create an object without creating a class in PHP How to Run a File in PHPThis tutorial demonstrates how to run a file in PHP. How to Download File Forcely in PHPThis tutorial demonstrates download file forcefully in PHP How to Pretty Print the JSON in PHPThis article introduces how to prettify the JSON string in PHP How to Use if...else Shorthand in PHPThis article introduces how to use the ternary operator as the if else shorthand in PHP How to Use Echo Shorthand in PHPThis article introduces the shorthand method of echo in PHP. How to Sort Multidimensional Array in PHPThis article introduces how to sort multidimensional array by value in PHP How to Create PDF in PHPThis article introduces how to create a PDF in PHP How to Send Attachments in Mail With PHPThis tutorial introduces how to send attachements in email in PHP