Normalize your data first by sending it through strtoupper()
or strtolower()
to make the case consistent. Then use your array_unique().
$normalized = array_map($input, 'strtolower');
$result = array_unique($normalized);
$result = array_map($result, 'ucwords');
print_r($result);