How-to articles, tricks, and solutions about PHP
In this short tutorial, you will learn the most efficient ways to easily sort a multidimensional array by value using PHP. Just follow the steps below.
On this page, we represented to you the three principal ways that allow programmers to detect whether a given array is empty or not. Just see the examples.
In PHP, you can use several functions to make a redirect from one web page to another. Learn how to do it accurately with W3docs.
PHP is a popular general-purpose scripting language. It provides files to the user by forcing them to download. Know how to download a file in PHP correctly.
Browser detection is used to determine the web browser a visitor is using and to serve browser-appropriate content to the visitor. Know how to do it with PHP.
JSON is a data-interchange format, which can be generated and parsed by PHP or other programming languages. See how to create and parse JSON data by PHP.
XML (Extensible Markup Language) is used to store and transport data. Learn how to accurately parse XML with PHP simpleXML library in this simple snippet.
In this snippet, we provide guidelines on one of the most common issues in PHP. Here, we show the most straightforward way on how to validate URL with PHP.
This tutorial explains how to validate an email using the PHP arsenal. Check out the examples of how to do that with the help of a PHP function and regex.
Sometimes getting the IP address of the client can be tricky. With the help of this snippet, you will manage to get the real remote IP address in PHP.
cURL is applied for making requests with different protocols. A post request can send user collected data to a server. Find out how to do that accurately.
PHP mail is a built in PHP function that is used for sending emails from PHP scripts. Check out our snippet to learn how to send email via PHP accurately.
PHP does not have a specific undo for what you delete from anywhere. This snippet will represent how to remove files from folder permanently using PHP.
Here is a short tutorial that will represent to you the way of creating a URL slug from string with PHP. It should be an essential part of any website.