Location: PHPKode > projects > Brunhilde Media Server > brunhilde/test.php
<?php

### test.php ###
// has the last thing that I was testing
include("global.php");

$array_to_sort = array(
  array("C", 3),
  array("E", 5),
  array("B", 2),
  array("D", 4),
  array("A", 1)
  );

for($i=0; $i < count($array_to_sort); $i++) {
  echo "<BR>".$array_to_sort[$i][0]."  |  ";
  echo $array_to_sort[$i][1]."<BR>";
  }

sort($array_to_sort);

for($i=0; $i < count($array_to_sort); $i++) {
  echo "<BR>".$array_to_sort[$i][0]."  |  ";
  echo $array_to_sort[$i][1]."<BR>";
  }


exit;

?>
Return current item: Brunhilde Media Server