implodieren

implode('-', array_filter($array));
Helpful Hawk