From 0b32787a9c04f66d618a1cb7f126d4d1404832cc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 25 May 2001 16:03:02 +0000 Subject: - 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. --- includes/common.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes') 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()); -- cgit v1.2.3