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 ...

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

Email sending image

You have Successfully Subscribed!