PHP implosionar sin nulo
implode('-', array_filter($array));
Helpful Hawk
implode('-', array_filter($array));