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 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 Link to comment https://forums.phpfreaks.com/topic/226040-merge-an-array/#findComment-1166922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.