Created
May 4, 2019 01:14
-
-
Save williamokano/0083fc7bec2503f1ad26f8ff63661626 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$items = [1, 2, 3]; | |
$multiplier = 2; | |
$doubledItems = array_map(function ($item) use ($multiplier) { | |
return $item * $multiplier; | |
}, $items); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Estou lendo seu artigo, achei bastante interessante o fato de sair um pouco do POO e ir para a Programação Orientada a Eventos.