The array_walk has a third optional parameter ($user_data). If it is passed then it would be passed as an argument to the function that is called on each one of the elements.

Nguồn:https://mcitmc.org/