Hello, I have an array:
$DuplicateArray =
pftest6[1]
pftest5[2]
pftest4[3]
pftest3[4]
pftest2[5]
pftest6[6]
pftest5[7]
pftest4[8]
pftest3[9]
pftest2[10]
pftest1[11]
pftest1[12]
and when I pass it to array_unique it drops one of the duplicated values.
$UniqueArray = array_unique($DuplicateArray);
for ($x=0; $x<=count($UniqueArray); $x++) {
echo "$UniqueArray[$x]<br>";
}
Outputs:
pftest6
pftest5
pftest4
pftest3
pftest2
So its dropping 'pftest1' can anyone tell me why? I've even tried extending the count manually to include [0] & [6] but there still blank, many thanks in advance