PHP Development 

Que: Write a function GetUniqueOnes

Problem Text :

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.

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

 

Please Share your Answer in Comment Box:

Want results like these for your business?

Talk to Aditya Infotech about SEO, Google Ads and websites that grow your business.

Get a free consultation

More from our blog