0
From arrayOf(2,10,3,5,20,100,7,9,80) print out all the numbers that are multiples of 10 In PHP
Array
2 odpowiedzi
+ 2
<?php
$func = function ($el) {
return $el % 10 == 0;
};
$arr = array(2,10,3,5,20,100,7,9,80);
$arr = array_filter($arr, $func);
echo implode(", ", $arr);
?>
+ 1
Thank you very much