[Solved] array_unique not removing duplicates


Just change

 $input = array($mfgName, $prodModel, $name);

into

$input = array_merge(array($mfgName, $prodModel), explode(" ",$name));

This splits the string $name in an array and array_unique works as intended.

0

solved array_unique not removing duplicates