<?php $a = array("a", "b", "c", "d", "e"); echo implode('-', array_slice($a, 2)); echo implode('-', array_slice($a, -2, 1));
You have javascript disabled. You will not be able to edit any code.