How To Compare Two Arrays of Data and Calculate Position Differences

How To Compare Two Arrays of Data and Calculate Position Differences

Sometimes we might want to compare two arrays of data, and determine the positional difference of each value in the array from one to the next. One example of such an application of this might be similar to what you see where a website is keeping track of the position of a programming language for instance. Consider the Tiobe Index which tracks the position of a programming language from month to month.…

The 27 Most Useful PHP Array Functions You Need To Know!

The 27 Most Useful PHP Array Functions You Need To Know

Now that we know exactly what Arrays in PHP are and how they work, what does PHP the language offer us in terms of working with arrays? Surely we’ll need to be able to count values in them, sort arrays by their contents, convert them between strings and arrays, find unique values, search within arrays, compare arrays to other arrays and more. PHP has got you covered with over 80, that’s right count them, functions to provide any type of operation you could ever want to perform on an array.…

What Are PHP Arrays?

php arrays

Arrays are common not only in PHP, but in any programming language you will come across. Arrays are very useful since they allow us to group together information in a very organized way. At it’s core, an array is a collection of different pieces of information or data which is ordered and indexed via integers. The information gets stored in specific index positions which makes it convenient to insert into and remove out of each pocket or index so to speak.…

The Top 17 Most Popular PHP Array Functions

Popular PHP Array Functions

You are going to run into PHP Arrays and PHP array functions with amazing regularity during the course of your web design and web development. It makes sense, because arrays are one of the most useful data types we can use. So it got us to thinking, what would you get if you combined the worlds most popular PHP CMS applications and dumped all of their source code into one bucket, then analyzed their most used array functions?…