How can I remove duplicate values from an array in PHP?
$arrDuplicate = array ("","",1,3,"",5); foreach(array_unique($arrDuplicate) as $v){ if($v != "" ){$arrRemoved = $v; }} print_r($arrRemoved);