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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -