Writing some code in anonymous function, so I am testing, how the same code works with the normal function. Kindly help me to integrate same callable function to normal function.
**Callable function:**
print_r(array_map(function($elements){return $elements['last_name'];}, $records));
**Normal function:**
function elements($elements)
{
return $elements['last_name'];
// Where to write variable $records?
}