Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Count all the values of an array:
SUBMITTED BY:
henry1874w
DATE:
June 23, 2017, 9:11 p.m.
FORMAT:
Text only
SIZE:
81 Bytes
Raw
Download
Tweet
HITS:
273
Go to comments
Report
<?php
$a=array("A","Cat","Dog","A","Dog");
print_r(array_count_values($a));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus