map and grep: from Perl to PHP

Probably many of you already know but here is the correspondent in PHP of the two fundamentals Perl functions:

map => array_map  
grep => array_filter

Too lazy to give you examples .. I think you can work it out yourself.

;)

comments powered by Disqus