Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to add two array in single array without repetation in php

<?php
	$array1=array("CPU","Mouse","Monitor");
	$array2=array("Key-Board","Monitor","Printer");
	$array = array_unique(array_merge($array1, $array2));
	print_r($array);
?>
Source by ktechblog.com #
 
PREVIOUS NEXT
Tagged: #add #array #single #array #repetation #php
ADD COMMENT
Topic
Name
8+3 =