0
I have a result of a DOM query in an array, as below:
array(10) {
[0]=> string(19) "6920709201700750550"
[1]=> string(16) "6920702500550400"
[2]=> string(14) "69207000550400"
[3]=> string(19) "7740641201800750550"
[4]=> string(16) "7740642500550400"
[5]=> string(20) "79378270201900750550"
[6]=> string(16) "7937822500550400"
[7]=> string(20) "79575693201900750550"
[8]=> string(16) "7957562500550400"
[9]=> string(14) "79575600550400"
}
I need to take the first 6 numbers starting from array[0] without repeating on an undefined number. That is, in the example above, I need the numbers 692070, 774064, 793782 and 795756. I’ve tried several answers here from Stackoverflow, but none of them worked. Since I’m not a programmer, it gets a little harder. If you could help, I’d be grateful.
"6 first numbers starting from array[0] without repeating on an indefinite number", could explain this better?
– Woss
You want to do something like SQL
GROUP BY
?– Augusto Vasques