Giorgio Sironi12/16/10
6893 views
0 replies
What's the point of substituting a perfectly fine foreach cycle, which is one of the most handy constructs of PHP,$newArray = array();foreach ($array as $value) { $newArray = $value * $value;}with anonymous functions/closures:$newArray = array_map($array,...