aboutsummaryrefslogtreecommitdiff
path: root/fn
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-07-31 18:29:53 +0200
committervincent-peugnet <v.peugnet@free.fr>2018-07-31 18:29:53 +0200
commite9b2ca7c06875069fa03379258625490872cc33d (patch)
tree3af763a303f07c75d63ca9801c98e58fa9052628 /fn
parentc36f25e76f40c6fdd6e02f92713d9c1241ed0a79 (diff)
downloadwcms-e9b2ca7c06875069fa03379258625490872cc33d.tar.gz
wcms-e9b2ca7c06875069fa03379258625490872cc33d.zip
W 2.4 graphic update table sort engine update
Diffstat (limited to 'fn')
-rw-r--r--fn/fn.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/fn/fn.php b/fn/fn.php
index ce299c8..f3b87aa 100644
--- a/fn/fn.php
+++ b/fn/fn.php
@@ -99,5 +99,40 @@ function hrdi(DateInterval $diff)
}
+
+function arrayclean($input)
+{
+ $output = [];
+ foreach ($input as $key => $value) {
+ if (is_array($value)) {
+ $output[$key] = array_filter($value);
+ } else {
+ $output[$key] = $value;
+ }
+ }
+ return $output;
+}
+
+
+
+
+function array_update($base, $new)
+{
+ foreach ($base as $key => $value) {
+ if (array_key_exists($key, $new)) {
+ if (gettype($base[$key]) == gettype($new[$key])) {
+ $base[$key] = $new[$key];
+ }
+ }
+ }
+ return $base;
+}
+
+
+
+
+
+
+
?>