Hi guys !

got some troubles with arrays : I would like to generate 5 arrays, place them in a table and sort decending using the last array... can t figure my probleme ... have a look (bear in mind that I am very new at php )

thanks for your help !!!!

patrick

PHP Code:
<?php function tri_multi($tableau$col$direction SORT_DESC){ 
  foreach(
$tableau as $k=>$v){ 
    
$cle[$k] = $v[$col]; 
  } 
  
array_multisort($cle$direction$tableau); 
  return 
$tableau



foreach (
$lines as $line_num => $line


//truncated or it would be too long ...

  
  
$arrray1 []= array($add);
  
$arrray2 []= array($t);  
  
$arrray3 []= array($ss);  
  
$arrray4 []= array($se);  
  
$arrray5 []= array($l);  
  
   


 
$tableau = array(array1array2array3array4array5);  
$tableau tri_multi($tableau5SORT_DESC);  
foreach (
$tableau as $string => $val) {
   echo 
"1" $string "2" $string "3" $string "4" $string "5" $string "\n";
}