Created
October 13, 2021 14:11
-
-
Save catwhocode/2ff8970456cc3f0ba84ada6077f030af to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// kalikan semua elemen array dengan bilangan 10 | |
$arr = [1,2,3,4,5,6]; | |
$arrow = array_map(fn($value) => $value * 10, $arr); | |
print_r($arrow); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment