php practice in php

technical talkiess
0

 

php practice in php 

<!DOCTYPE html>

<html>

<body>


<?php


$arrayNumber = [1,2,1,2,4,4,4,4,10,3,6,6,6,7,8,8,7,9,9,10];

$n1 = [];

foreach($arrayNumber as $value){

   if($n1[$value]){

       $n1[$value]++;

   }else{

    $n1[$value] = 1;

   }

}

asort($n1);

$keys = array_keys($n1);

var_dump($keys[0]);


?> 


</body>

</html>


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)