This commit is contained in:
skeeter 2001-11-10 20:48:43 +00:00
parent efd42b032f
commit 9689d6a2b6

View File

@ -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) function array_reverse ($array, $preserve_keys = FALSE)
{ {