php - merging two arrays and keep duplicate values -


is there php function merge 2 arrays , keep duplicates?

like:

$a=array('a','b','c'); $b=array('b','c','b'); array_merge2($a,$b); //result: array('a','b','c','b','c','b'); 

thanks

add1:

what the... tested array_merge , didn't keep duplicate values =/

array_merge keeps duplicates.

http://codepad.org/xgcmai3z


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -