In this tutorial, we display and describe the most flexible ways to add elements to an empty array. Follow the steps and you will manage that easily.
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 tutorial, we are going to represent to you two handy options of how to check if a record exists in the database with PHP.
In this short tutorial, we will provide you with the solution to one of the common issues in PHP: how to check whether a string contains a particular word.
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.
On this page, we are going to help you figure out the main ways of converting date formats in PHP.
If you want to get a proper explanation of how to convert a PHP object to an associative array, you are in the right place. Just follow the examples.
This snippet is dedicated to one of the common PHP issues: how to convert a string to a number. You can easily do that by following the options we provide.
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.
While working with arrays, it is commonly necessary to count all its elements. This snippet will discover two helpful functions that will help you do that.