Removing duplicates out of multiple arrays, php -


i've got multiple arrays, , want remove duplicates. got unique items.

array(4) {  [0]=>   string(14) "bergen op zoom"  [1]=>   string(9) "jan steen"  [2]=>   string(7) "culture"  [3]=>   string(11) "netherlands" }  array(8) {  [0]=>   string(14) "fasion"  [1]=>   string(9) "conceptial"  [2]=>   string(7) "industrial"  [3]=>   string(11) "netherlands" } 

i want print strings out of array except last netherlands because it's printed.

i've tried array_unique() if there duplicates in array itself.

no clue how thing working..

try this

array_unique( array_merge($array1, $array2) ); 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -