Transform string into and array [closed]

We have the following php string;

$string = '5TW10AA#ABB:5CD01234567TD,5TW10AA#ABB:5CD12345678TD,5TW10AA#ABB:5CD23456789TD,6A140EA#ABH:5CD34567891TD,6A140EA#ABH:5CD45678912TD'

In this string, is a pair of SKU and Serial Number divided by :, and each pair is divided by a ,.

We want to transform this string into an array, where we get the SKU as index and Serial number as values. This is so we can combine multiple Serial Numbers of the same SKU.

We want to load it into a table, so we get the following result;


$array= {
    '5TW10AA#ABB' => '5CD01234567TD , 5CD12345678TD , 5CD23456789TD'
    '6A140EA#ABH' => '5CD34567891TD , 5CD45678912TD'
    };

How can we achieve this?