I try to convert a string containing shedule to an array
For exemple
convert("{{09:00,10:00},{18:00,19:00}}") // returns [['09:00','10:00'],['18:00','19:00']]
Is there a way more elegant than this one :
    function convert($shedules) {
            $shedules = explode('},{', $horaires);
            $shedules = array_map(function ($shedule) {
                return explode(',', str_replace(['{', '}'], '', $shedule));
            }, $shedules);
          return $shedules
    }
