PHP – array_map + create_function

For use with php < 5.3. If you're using 5.3 just use a proper anonymous function. array_map(create_function(‘$v’, ‘return strtolower($v).”s”;’), $a);

Leave a Reply