NextIndexPrevious

Programs in PHP

13. Program to remove the duplicate values from an array.
<?php

	$arr = array(10,20,10,30,20,10);
	print_r(array_unique($arr));
	
?>
Output :

Array ( [0] => 10 [1] => 20 [3] => 30 )

Father of PHP

Rasmus Lerdorf

Rasmus Lerdorf

Born: November 22, 1968, Greenland
Google+