Home  >  Article  >  Backend Development  >  Find the most occurring characters PHP code

Find the most occurring characters PHP code

WBOY
WBOYOriginal
2016-07-25 08:46:06809browse
  1. $arr=str_split($str);
  2. $arr=array_count_values($arr);
  3. arsort($arr);
  4. print_r($arr);
Copy code

Most used, PHP


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn