<?php $array = array('one','two','tre','four','five'); $newArray = []; foreach ($array as $el) { foreach ($array as $el2) { if ($el === $el2) continue; $newArray[] = $el."/".$el2; } array_shift($array); } print_r($newArray);
You have javascript disabled. You will not be able to edit any code.