I have an array that looks like this when I use var_dump:
array(4) {
[0]=> array(2) {
[0]=> string(1) "1"
["userID"]=> string(1) "1"
}
[1]=> array(2) {
[0]=> string(1) "2"
["userID"]=> string(1) "2"
}
[2]=> array(2) {
[0]=> string(1) "1"
["userID"]=> string(1) "1"
}
[3]=> array(2) {
[0]=> string(1) "1"
["userID"]=> string(1) "1"
}
}
That is 1,2,1,1
I tried using array_unique($arr) but on this particular array, instead of turning it into 1,2, it just turns the array into 1.
It should work, but I'm not sure why it doesn't.
1,2" doesn't make much sense to me.