How-to articles, tricks, and solutions about PHP
Learn how to get multiple selected values of the selected box in PHP. In our snippet, we provide you with comprehensive information and handy examples.
If you want to learn how to sort an array of associative arrays by value of a given key in PHP, then read our tutorial. Here, you can find handy solutions.
In this short tutorial, you will find the way of passing an array in URL query string using PHP.
In this short tutorial, we are going to show you how to use the PEAR option to send emails via SMTP accurately. Just follow the steps below.
Here, we have collected five simple and efficient ways that will help you to get a PHP file extension. Check out the examples and choose the best one.
In this tutorial, you can find a comprehensive guideline on how to convert a PHP array to JavaScript accurately. Just check out the options and examples.
If you want to grasp the way of getting a query builder to output its raw SQL query as a string using PHP, then you are in the right place.
Here is a short tutorial that will assist you in configuring XAMPP to send email from localhost using PHP.
This is a short guideline that provides comprehensive information on how to decode a JSON string into an array with the help of PHP.
This is a short snippet that explains how to check whether a number is odd or even in PHP. Check out the handy methods and examples of our tutorial.
In this short tutorial, you will find comprehensive solutions on how to push both value and key into a PHP array.
If you wish to manipulate with the DateTime object in PHP, then this snippet is for you. Here, you will learn how to correctly convert DateTime to string.
Here is a short tutorial where you can find three helpful methods allowing to find the foreach index with the help of PHP.
In this snippet, we are going to figure out how to successfully determine the first and last iteration in a foreach loop with the help of PHP.
This tutorial is dedicated to an issue that any developer may come across. It’s where to find the php.ini file. Choose among the three methods provided.
This snippet is dedicated to the the main ways of using self and $this keywords in PHP. Here, you will learn how to use them and their main differences.
In this short tutorial, we are going to represent to you the three main PHP functions that are used for removing the first character of a string.
While sending a mail, it is often necessary to send attachments, too. In this snippet, we will show you how to send attachments with PHP mail easily.
In this short tutorial, we are going to represent to you a solution to a common PHP issue: how to remove warning messages easily.
In this tutorial, we are going to represent to you two handy options of how to check if a record exists in the database with PHP.
On this page, we are going to provide you with comprehensive information about a common PHP issue: how to split a comma delimited string into an array.
In this short snippet, you will find a reasonable and accurate solution to a common PHP: how to get the absolute path to the initially run script.
On this page, you will find practical and comprehensive information on how to remove a cookie with the help of PHP.
In this snippet, we are going to describe how to create a new line with the help of the PHP arsenal. Go ahead and learn how to do it easily.
In this short tutorial, we are going to represent to you how to find where the PHP error log is located.