PHP Remove duplicate entries from an array – PHP April 14, 2011 Pramod T P Leave a comment <?php $testArray = array('Test1', 'Test2', 'Test1'); print_r( array_unique($testArray)); // Array ( [0] => Test1 [1] => Test2 ) ?>