Multiple choice

_________ applies user function to every member of an array.

  1. array_funct

  2. array_walk

  3. array_apply

  4. in_array

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

array_walk() applies a user-defined callback function to each element of an array. This is useful for performing operations on every array element, such as formatting, validation, or transformation. The callback function receives the element's value and optionally its key and index.