Answer the question
In order to leave comments, you need to log in
Who will help to deal with the php array?
There is a variable
$all = "13,07,03,08,15,22,12,23,19,21,04,09,21,01,03,10,09,22";
$a=array(13,07,03,08,15,22,12,23,19,21,04,09,21,01,03,10,09,22);
$b=array();
sort($a);
foreach($a as $k=>$v)
{
$b[$v][]=$v;
}
echo 'Найдено: <br>';
foreach($b as $k => $v){
echo 'значение- '.$k.'  встречается  '.count($v).'  раз(раза) <br>';
}
$a=array($all);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question