function removeDuplicates($arr) {
return array_unique($arr);
}
// Example usage:
$array = [1, 2, 2, 3, 4, 4, 5];
print_r(removeDuplicates($array));
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Subscribe
Login
0 Comments
Oldest