<?php function no_dupes(array $input_array) { return count($input_array) === count(array_flip($input_array)); } var_export(no_dupes([1, 1.5])); // should be true
You have javascript disabled. You will not be able to edit any code.