<?php function no_dupes(array $input_array) { return array_count_values($input_array) === count($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.