I have a table called stores , this table has: ..., store_name and store_category, example:
nome_loja | loja_categoria -------------------------- loja1 | roupas loja2 | brinquedos loja3 | roupas
What I would like to do is to group the records with the same category name, case insensitive if possible, with the result being an associative array with the name of the categories, something like this:
roupas => ( loja1, loja3 ), brinquedos => ( loja2 )