dreamwest Posted January 29, 2011 Share Posted January 29, 2011 Whats the array function to merge two or more similar patterns in a single array. $a = array('red','pink','red','green','blue'); Basically i need to combine "red" so the output will be red, pink, green, blue Quote Link to comment https://forums.phpfreaks.com/topic/226040-merge-an-array/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 29, 2011 Share Posted January 29, 2011 array_unique Quote Link to comment https://forums.phpfreaks.com/topic/226040-merge-an-array/#findComment-1166922 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.