diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-25 16:03:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-25 16:03:02 +0000 |
commit | 0b32787a9c04f66d618a1cb7f126d4d1404832cc (patch) | |
tree | 1463a61523fc0a5b9321b8f9a0b1b3c0e1ef604f /includes/common.inc | |
parent | bfc897d533d9c9d2642c300bc771ca10e7ee8648 (diff) | |
download | brdo-0b32787a9c04f66d618a1cb7f126d4d1404832cc.tar.gz brdo-0b32787a9c04f66d618a1cb7f126d4d1404832cc.tar.bz2 |
- Added a experimental index.module to try out some of the discussed
techniques. It does not work yet, nor is it integrated with the
rest of the code.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index d7ae5ae63..bccc4ce5d 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -225,6 +225,14 @@ function field_set($string, $name, $value) { return $rval; } +function field_merge($a, $b) { + foreach (explode(";", $b) as $data) { + $entry = explode(":", $data); + $a = field_set($a, $entry[0], $entry[1]); + } + return $a; +} + function timer_start() { global $timer; $timer = explode(" ", microtime()); |