How can I show this array in a grouped way according to the value "cat"?
My array:
$options = array(
array("cat" => "Impresoras","nameProd" => "Impresora 4"),
array("cat" => "Destructoras","nameProd" => "Destructora 3"),
array("cat" => "Impresoras","nameProd" => "Impresora 8"),
array("cat" => "Destructoras","nameProd" => "Destructora 5")
);
I need to print:
Impresoras: Impresora 4, Impresora 8
Destructoras: Destructora 3, Destructora 5