PHP get the item in an array that has the most duplicates

前端 未结 2 1567
难免孤独
难免孤独 2021-02-07 02:08

I have an array of strings and I am looking for a way to find the most common string in the array.

$stuff = array(\'orange\',\'banana\', \'apples\',\'orange\');
         


        
2条回答
提交回复
热议问题