it's my first time using array_unique and I'm not sure if I'm doing something wrong.
I have the following code:
array_unique($items);
print_r($items);
foreach ($items as $item) {
echo "$item <br />";
}
print_r is returning: Array ( [0] => SimpleXMLElement Object ( [0] => Tirana ) [1] => SimpleXMLElement Object ( [0] => Tirana ) [2] => SimpleXMLElement Object ( [0] => Tirana ) )
echo in loop is returning: Tirana Tirana Tirana