Skip to content

Instantly share code, notes, and snippets.

@catwhocode
Created October 13, 2021 14:11
Show Gist options
  • Save catwhocode/2ff8970456cc3f0ba84ada6077f030af to your computer and use it in GitHub Desktop.
Save catwhocode/2ff8970456cc3f0ba84ada6077f030af to your computer and use it in GitHub Desktop.
<?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