a = array("one", "two", "two", "three") a = array_unique(a); /* will lead to: a[0] = "one" a[1] = "two" a[3] = "three" */ a = array_values(a); /* Now we've got: a[0] = "one" a[1] = "two" a[2] = "three" */ ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)