Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

3 of 3
Commonmark migration

Use the array_count_values function.

$countValues = array_count_values($myArray);

echo $countValues["Ben"];

Rikesh
  • 26.5k
  • 14
  • 82
  • 90

AltStyle によって変換されたページ (->オリジナル) /