I have a multidimentional array that needs to be reduced to the unique entries.
For example:
array(61) {
[2]=>
array(2) {
[0]=>
string(7) "results"
[1]=>
string(1) "1"
}
[3]=>
array(2) {
[0]=>
string(7) "results"
[1]=>
string(1) "2"
}
[4]=>
array(2) {
[0]=>
string(9) "questions"
[1]=>
string(1) "1"
}
[5]=>
array(2) {
[0]=>
string(7) "results"
[1]=>
string(1) "1"
}
..... etc.
What is the easiest way to search through this array and just collect the UNIQUE entries?
Another way...
This info is coming from a database, I tried to make the database do the work for me - but with no luck.
the query "SELECT DISTINCT TYPE , part FROM DATA WHERE langcode = 'en' AND acronym = 'pss' ORDER BY section;" works in database programs - but I can't get my php code to show the results.
Is there a special way to mysql_result this information?
I'd appreciate some help and direction. Thanks in advance!