Write a function GetUniqueOnes, which accepts a single argument. The argument is an array of integers, and the function should return the unique integers separated by commas. Note: Please refrain from using functions such as array_unique or array_combine.
For Example : GetUniqueOnes($arr)
$arr = array(34,54,67,68,141,151,161,141,54,151,54)
should return
34,54,67,68,141,151,161
I can do this right away for you, just out of curiosity though, why do you not want to use array_unique for this? It accomplishes the same thing but with less resources used than writing a function for it with loops and comparisons.