From the course: Functional Programming with PHP

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Combining array functions

Combining array functions - PHP Tutorial

From the course: Functional Programming with PHP

Start my 1-month free trial

Combining array functions

- [Instructor] We've seen so far in previous videos several of PHP's numerous built in array functions, their syntax and some examples of how they might be used in a code base. These functions are certainly very powerful on their own and each contributes a great deal towards simplifying and increasing readability in our code. The really exciting part however, is that these functions can all be combined to give us an incredible amount of functionality. In this video, we're going to walk through an example of how we can do this. The example we're going to look at is this. Let's say we have an array of employee data, each with name, age, salary, and job title attributes. In the real world, there are all sorts of interesting information that can be deduced from data sets like this, and we're going to examine one way that we can discover such information using the built in array functions we've learned. So what we're going to…

Contents