PHP Callback Functions
A callback function is a function which is passed as an argument into another function.
Pass a callback to PHP's array_map() function to calculate the length of every string in an array:
Example - callback functions
Callbacks in User Defined Functions
It can also take callback functions as arguments.
Run a callback from a user-defined function: