PuStudy.Com Start write and Run your Web Code Online Work, PuStudy.Com Provide Online Web Editor, Every Language Code Work in this Editor, Editor Work Like as - Html, Php, Css, Bootstrap, Asp, jQuery Etc.
<?php $names = array("Amanda","Catherine","Daniel","Amanda","Daniel"); print_r(array_count_values($names)); /* Output — Array ( [Amanda] => 2 [Catherine] => 1 [Daniel] => 2 ) */ ?>