From: Neszt Tibor Date: Tue, 30 Sep 2014 13:27:35 +0000 (+0200) Subject: uwc: php implementation X-Git-Url: http://git.neszt.hu/?a=commitdiff_plain;h=040a3bc5f9a2af449e771283b9e4534add87cece;p=uwc.git uwc: php implementation --- diff --git a/uwc.php b/uwc.php new file mode 100644 index 0000000..43d8995 --- /dev/null +++ b/uwc.php @@ -0,0 +1,22 @@ + $v) { + if ( !isset($res[$v[0]]) ) { + $res[$v[0]] = 1; + } else { + $res[$v[0]]++; + } + } +} + +asort($res); + +foreach ( $res as $k => $v ) { + print "$k $v\n"; +} + +?>