diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-17 12:24:09 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-17 12:24:09 +0000 |
| commit | 02eece808fde87eac07f8bcbad1ee278cb91514e (patch) | |
| tree | 221a385a7b4d5a01cec3d33543e7a85e6d093db3 /roundcubemail/program/include/rcube_shared.inc | |
| parent | 7a2493bf23f7271f5ea4b9e8fd205e13014c5ca6 (diff) | |
Merged devel-threads branch (r3066:3364) back into trunk
git-svn-id: https://svn.roundcube.net/trunk@3367 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_shared.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index f4f23a26b..a130391f7 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -608,6 +608,26 @@ function rcube_explode_quoted_string($delimiter, $string) /** + * Get all keys from array (recursive) + * + * @param array Input array + * @return array + */ +function array_keys_recursive($array) +{ + $keys = array(); + + if (!empty($array)) + foreach ($array as $key => $child) { + $keys[] = $key; + if ($children = array_keys_recursive($child)) + $keys = array_merge($keys, $children); + } + return $keys; +} + + +/** * mbstring replacement functions */ |
