I have a cart session with below elements:
print_r($_SESSION['cart']);
Array
(
[0] => Array
(
[p_name] => X-Dot Motorbike Helmet G88 + Bogo Visor (Test)
[p_code] => 2102649
[p_id] => 12332
[p_price] => 1.60
[p_seller] => 230002
[p_alt-variation-1] => Red
[p_alt-variation-2] => L - 1.60-36
[p_qty] => 1
)
[1] => Array
(
[p_name] => Salt and Lemon Candy (20 Packs/Carton)
[p_code] => 3443268
[p_id] => 11654
[p_price] => 1.20
[p_seller] => 230002
[p_qty] => 1
)
[2] => Array
(
[p_name] => Romoss Rolink Hybrid Premium Cable
[p_code] => TEST421
[p_id] => 10670
[p_price] => 13.90
[p_seller] => 230001
[p_qty] => 1
)
)
As seen on the [p_seller], I want to group the same p_seller value and return the number :
return 2 through the array (230002), and return 1 through the array (230001)
how can I do that?
**230001**value or you trying to bold those numbers ???