diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-25 18:41:19 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-25 18:41:19 -0700 |
commit | f923d21df341546e054eb0f9628891365c4c2d62 (patch) | |
tree | bcbd5ca129c235c19bb7b0f6e319834d99eb26e6 /include/text.php | |
parent | 5a9e9284c260c8bb880987c0942a9fe040442a2b (diff) | |
download | volse-hubzilla-f923d21df341546e054eb0f9628891365c4c2d62.tar.gz volse-hubzilla-f923d21df341546e054eb0f9628891365c4c2d62.tar.bz2 volse-hubzilla-f923d21df341546e054eb0f9628891365c4c2d62.zip |
some tagging work
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 60f6ff383..645c15df0 100644 --- a/include/text.php +++ b/include/text.php @@ -3402,3 +3402,18 @@ function unpunify($s) { } + +function unique_multidim_array($array, $key) { + $temp_array = array(); + $i = 0; + $key_array = array(); + + foreach($array as $val) { + if (!in_array($val[$key], $key_array)) { + $key_array[$i] = $val[$key]; + $temp_array[$i] = $val; + } + $i++; + } + return $temp_array; +}
\ No newline at end of file |