Jump to content

Duplicate elements array perhaps using REGEXP


allinurl

Recommended Posts

Hello, I have the following array where Im trying to display just one element for the first column, what I mean is not to display duplicate elements of the first column. What would be the best way to do this? Thanks

 

$array = array ( array("test foo", 10, 795, "cc"),
                 array("hello bar again", 10, 795, "dd"),
                 array("test foo", 10, 795, "cc"),
	 array("test foo", 10, 795, "cc"),
	 array("hello bar again", 10, 795, "bb"),
                 array("mike bar", 10, 775, "aa"), 
		 array("mike bar", 10, 775, "aa") ); 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.