Removing custom values from a PHP array

It is possible to use array_filter method to remove custom values from a PHP array. This function takes two arguments. First one is name of the array, and the second one is a function that need to be applied to an array element. This function needs to return either true or false. True statement will indicate that element of the array needs to be kept and false means that it should not be kept. array_filter returns a new array.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator