<?php
$dupArr = array("A" => "foo", "B" => "baz",
"C" => "bar",
"D" => "foo");
PD9waHAKCiRkdXBBcnIgPSBhcnJheSgiQSIgPT4gImZvbyIsIAogICAgICAgICAgICAgICAgIkIiID0+ICJiYXoiLCAKICAgICAgICAgICAgICAgICJDIiA9PiAiYmFyIiwgCiAgICAgICAgICAgICAgICAiRCIgPT4gImZvbyIpOwokdW5pcXVlID0gYXJyYXlfdW5pcXVlKCRkdXBBcnIpOyAKCnByaW50X3IoJHVuaXF1ZSk7