php数组合并&去重&恢复索引demo
<?php 
	$tmp = array('a','b','v');
	$tmp_1 = array('a','s','asdf');
	$res = array_merge($tmp,$tmp_1);
	$res = array_unique($res);
	$res = array_values($res);
	print_r($res);
?>
<?php 
	$tmp = array('a','b','v');
	$tmp_1 = array('a','s','asdf');
	$res = array_merge($tmp,$tmp_1);
	$res = array_unique($res);
	$res = array_values($res);
	print_r($res);
?>