I have this code for just one array, how to set this code for etc 15 or 20 arrays of numbers, for each array to found repeating number?
<?php
function printRepeating($arr, $size)
{
$i;
$j;
echo " Repeating elements are ";
for($i = 0; $i < $size; $i++)
for($j = $i + 1; $j < $size; $j++)
if($arr[$i] == $arr[$j])
echo $arr[$i], " ";
}
$arr = array(6, 21, 54, 54, 23, 65, 48);
$arr_size = sizeof($arr, 0);
printRepeating($arr, $arr_size);
?>
printRepeating($arr, $arr_size);in a looparray_count_values?