InterviewSolution
Saved Bookmarks
| 1. |
What is array filter in PHP? |
|
Answer» The array_filter() method filters the VALUES of an array the USAGE of a callback function. This method passes each value of the input array to the callback function. If this callback function returns true then the CURRENT value from the input is returned into the result array. Syntax:array_filter(array, callbackfunction, flag)
function test_odd_number(int $VAR) |
|