<?php $stack = array("twice", "twice", "once", "another once"); echo array_sum(array_map((function ($v) { return $v > 1 ? $v : 0; }), array_count_values($stack)));
You have javascript disabled. You will not be able to edit any code.