[FX.php List] Help with array_unique

Bob Patin bob at patin.com
Thu Apr 12 08:38:09 MDT 2007


I've got an array that returns with a lot of duplicate values that  
I'd like to remove; I found "array_unique" on the php.net site, but I  
can't seem to get it formatted properly.

The value that I'd like to clean up is

$vlData['target_name'][0]

I tried doing this:

$thearray = $vlData['target_name'][0];

After I do this, I need to feed this into a 2nd array so that I can  
assign images to buttons on a page; I tried doing this:

$c=0
foreach($thearray) {
	$n[$c] = $thearray[$c];
	$c++;
}

but that didn't work, which makes me think that I missed something...

Any help would be really appreciated... :)

Thanks,

bob




More information about the FX.php_List mailing list