php meledak tanpa nol

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