Originariamente inviato da intimoviro
Grazie per la risposta, potresti farmi un'esempio pratico?

Grazie
ne hai diversi nel manuale che ti ho linkato... es.:

Example #2 array_unique() and types
<?php
$input = array(4, "4", "3", 4, 3, "3");
$result = array_unique($input);
var_dump($result);
?>

The above example will output:

array(2) {
[0] => int(4)
[2] => string(1) "3"
}