Il codice ti dà le combinazioni uniche.

Codice PHP:
<?php
$array 
= array('11''12''13''14''15');
for(
$i=0;$i<count($array);$i++) {
 for(
$j=0;$j<count($array);$j++) {
  if (
$i>$j) {
   print 
"$i - $j<br/>";
  }
 }
}

 function 
depth_picker($arr$temp_string, &$collect) {
 if (
$temp_string != "")
  
$collect []= $temp_string;

 for (
$i=0$i<sizeof($arr);$i++) {
  
$arrcopy $arr;
  
$elem array_splice($arrcopy$i1); 
  if (
sizeof($arrcopy) > 0) {
   
depth_picker($arrcopy$temp_string ."-" $elem[0], $collect);
  } else {
   
$collect []= $temp_string"-" $elem[0];
  }
 }
 }

 
$collect = array();
 
depth_picker($array""$collect);
 
$result  = array();
 foreach(
$collect as $value) {
 
 
$arr    explode("-",$value);
 
asort($arr); 
 
$str    implode(' ',$arr);
 if (!isset(
$result[$str])) {
  
$result[$str] = $str;
 } 
 }
 
asort($result);
 
 foreach(
$result as $value) {
 echo 
$value."<br>";
 }
Pero' visto quello che hai scritto, mi chiedo come farai per stampare a video i prezzi.