1
Good is the following I have the following code:
$cars = array("Volvo", "BMW", "Toyota", "BMW", "Ferrari");
$cars2 = array_unique($cars);
echo $cars2[0];
echo "<br><br>";
echo $cars2[1];
echo "<br><br>";
echo $cars2[2];
echo "<br><br>";
echo $cars2[3];
Me showing the $cars2[3],
show me a mistake, but in theory I wanted you to show me the Ferrari, or how can I join the arrays, excluding the repeated, and arrays have always worked.
How can I do that?
I think that’s it, but the order gets all changed? How can I do it in a way that gets the right order?
– Gonçalo
I edited, look now.
– Diego Souza
Perfect! Thank you so much for your help.
– Gonçalo