Warning: count(): parameter must be an array or an object that implements Countable
This is a very common error when we pass the non-array to count() function. You will get the exact same error message as below- Suppose …
This is a very common error when we pass the non-array to count() function. You will get the exact same error message as below- Suppose …
PHP use Mbstring (multi-byte string) extension to convert strings to a different encoding. It is used to express more than 256 characters in a regular …
This error “Using $this when not in object context” is pretty straightforward. The error generally occurs when you use $this in the non-static method. So …
This post is for developers who want to know how to validate image size and type in PHP. This article will show you the basics …
This article is going to show you how to add text to an image in PHP. It’s not as hard as it sounds and I’ll …
The foreach statement is a language construct that will iterate over the associative array data type. It was introduced in PHP 4. Although it can also …
Chances are you have come across the need to access your database to get the data in JSON format, and I am here to tell …
The following is a simple written tutorial with screenshot images and source code on how to insert, retrieve, and update images in MySQL database using …
This is a tutorial on how to break out of a foreach loop in PHP. This can be useful if you want to exit the …
In this tutorial, we are going to check how to get Index value in foreach loop PHP. In the foreach construct, the variable is a …
In this tutorial, I am going to show you how to use foreach loop for a string in PHP? If you have a string variable, …
SEO is a number-one priority for most website owners nowadays. If you want to know how to create an SEO-friendly URL, then read on. A …