fbpx

Remember array_map? That handy-dandy function that lets process every element of an array using a function?

It’s so simple, yet I always forget this one and need reminding:

$result = array_map('trim', $source_array);

Array_map has many other potential uses as well …