-<?
+<?php
/**
** array.php
**
**
**/
+ $array_php = true;
+
function ary_sort($ary,$col, $dir = 1){
// The globals are used because USORT determines what is passed to comp2
// These should be $this->col and $this->dir in a class
return $newArray;
}
+
+ function array_cleave($array1, $column)
+ {
+ $key=0;
+ $array2 = array();
+ while ($key < count($array1)) {
+ array_push($array2, $array1[$key]["$column"]);
+ $key++;
+ }
+
+ return ($array2);
+ }
+
?>