Equivalent of R function make.unique in PHP
I need the same functionality of R function make.unique in PHP. In R: > dup_array = c("a", "b", "a", "c") > make.unique(dup_array) [1] "a" "b" "a.1" "c" In PHP: > dup_array = array("a", "b", "a", "c") > magic_function(dup_array) What is…