How do I go about getting all of the duplicate values in an array, and assigning an integer to each of them to make them unique. For example:
array(
0 => 'Title',
1 => 'Primary Contact: Name',
2 => 'Primary Contact: Email',
3 = > 'Title',
4 = > 'Title'
);
My goal is to turn that into the following:
array(
0 => 'Title - 1',
1 => 'Primary Contact: Name',
2 => 'Primary Contact: Email',
3 = > 'Title - 2',
4 = > 'Title - 3'
);