submitted a patch from Andreas Dahl to make folder deleting work with
[squirrelmail.git] / functions / array.php
index adccf776650b01cb17b87963d1a0b00f89c962f9..9e83a19532ba2c4b34bf017a41914341d158e685 100644 (file)
@@ -1,4 +1,4 @@
-<?
+<?php
    /**
     **  array.php
     **
@@ -7,6 +7,8 @@
     **
     **/
 
+   $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);
+  }
+
 ?>