I have this project that let user inputs 5 different numbers from 1 to 50. But I want to validate it before saving to DB that i will be 5 unique numbers. What\'s the best an
Put in an array, sort it and check if elements 1,2 2,3 3,4 and 4,5 are different (in a loop).