I have a list of domain names, for example:
domain1.com
domain2.com
domainxxx2.com
dom.com
from that list I want to get:
length 7 [2]
length 10 [1]
length 3 [1]
I know how to split the tld and count each domain length, but dont know how to group and count those with the same length.
I would like to do it on PHP.