Skip to content

Glossary: PHP Basics

array_map()

Also written: array_map

A function that runs a given function on every value of an array and returns a new array of the results, keeping the keys. Its function comes first, then the array.

Where the book teaches it

Related terms

array_filter()arrow functionclosure