1. <?php
  2. $num = range(1, 9);
  3. echo implode('-', $num);