diff --git a/phpgwapi/inc/php3_support_functions.inc.php b/phpgwapi/inc/php3_support_functions.inc.php index 7bc9afb37d..300c8218ef 100755 --- a/phpgwapi/inc/php3_support_functions.inc.php +++ b/phpgwapi/inc/php3_support_functions.inc.php @@ -44,6 +44,21 @@ } } + function array_keys ($arr, $term="") + { + $t = array(); + while (list($k,$v) = each($arr)) + { + if ($term && $v != $term) + { + continue; + $t[] = $k; + } + return $t; + } + } + + /* function array_reverse ($array, $preserve_keys = FALSE) {