summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/convert.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/convert.php b/utils/convert.php
index 6ba1964..4471e8f 100644
--- a/utils/convert.php
+++ b/utils/convert.php
@@ -8,4 +8,17 @@ function convert($message)
return $message;
}
+function convert_array($vs)
+{
+ $vars = array();
+
+ if(sizeof($vs)) {
+ foreach($vs as $k => $v) {
+ $vars[$k] = convert($v);
+ }
+ }
+
+ return $vars;
+}
+
?> \ No newline at end of file