Example of array_filter()
functions

How to use array_filter() function in php ?

The array_filter() function use to filters the elements of an array using a callback function. This function accepts two parameters and one flag. The first parameter is required which is to be an array