How-to articles, tricks, and solutions about ARRAY
How to Create and Parse JSON Data 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.
How to Deal With Undefined Offset Error in PHP
Here is a snippet that will help you to deal with a common PHP undefined offset error. Here, you will find three methods that help to avoid such an error.
How to Delete an Element from an Array in PHP
In this short tutorial, you will find the most proper solution to the commonly asked question by programmers: how to delete an element from an array.
How to Determine the First and Last Iteration in a Foreach loop?
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.
How to Find the Sum of an Array of Numbers