To any one who can help.. Thank you ahead of time!
Here is my deal.. I am pulling variables from a database and creating an array like so:
$test[$rowarray[variable]] = $rowarray[variable];
Then, I have something like this:
foreach($test as $key => $value)
{ PERFORM SOME TASK HERE }
Now to my ? -- I have a few variables that are the same in the database, and I only want to perform the task once per entry. Is there a way I can make my foreach statement check for unique entries so that if I have two alike entries like so: Array ( [Original #503] => Original #503 ) Array ( [Original #503] => Original #503 ) , it would only perform my task once?
Again, thanks for any help!