Jump to content

[SOLVED] Array explode issue


holladb

Recommended Posts

Hey guys, im trying to catch duplicate entries in my array. The array is being created with data from the dbase.

 

I have separated the items with a space (tried a comma previously)

 

I tried using the array_unique function to do this manually but failed to see results.

 

Anybody have a solution?

 

				while($row = $result->fetch()) {
			  $orderit[] .= array("'".$row['scat01']."' ");
			  }
			  //$owe = join('',$orderit);
			  //$orderit = array_unique($orderit);
			  //print_r ($orderit);
			  //foreach($orderit as $items) {
			  //echo $items;
			  //}
				$orderit = explode (" ", $orderit);
				print_r($orderit);

 

Above is where i left off because i am extremely stumped. Somebody help me remove unique arrays and explode them properly?

Link to comment
https://forums.phpfreaks.com/topic/77475-solved-array-explode-issue/
Share on other sites

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.