Using an anonymous function with array_walk and passing in a variable so that it's in scope for the function to use.