I have an array like this:
Array (
    [0] => Array
        (
            [code] => Red Rose
            [info] => 2
        )
    [1] => Array
        (
            [code] => Lily Flower
            [info] => 1
        )
    [2] => Array
        (
            [code] => Lily Flower
            [info] => 4
        )
    [3] => Array
        (
            [code] => Lily Flower
            [info] => 2
        )
)
I need my result to be like:
Red Rose (2)
Lily Flower (7)
I have been trying to use foreach, but with no success.
foreach($array as $rowjb):
   echo $rowjb['code']." (".$rowjb['info'].") </br>";
endforeach;
Red Rose (2)
Lily Flower (1)
Lily Flower (4)
Lily Flower (2)