Skip to content

Instantly share code, notes, and snippets.

@nielslange

nielslange/find_uniq.php

Last active Feb 24, 2020
Embed
What would you like to do?
<?php
function find_uniq($a) {
sort($a);
return ($a[0] === $a[1]) ? end($a) : current($a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment