From f1a90f3fb6effcb1d3a5e59e9c138fa005c3cf98 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 15 Jul 2008 14:44:27 +0000 Subject: nicer argument names --- it.class | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/it.class b/it.class index 4dd4d4d..addcf64 100644 --- a/it.class +++ b/it.class @@ -645,14 +645,14 @@ function date($format = "", $stamp = null) /** * Iterate over an array, replacing every element by expression - * @param $expr The expression to apply, may contain $k for keys and $v for values - * @param $arr The array to iterate over + * @param $expression The expression to apply, may contain $k for keys and $v for values + * @param $array The array to iterate over */ -function map($expr, $arr) +function map($expression, $array) { - $func = create_function('$k,$v', "return $expr;"); + $func = create_function('$k,$v', "return $expression;"); - foreach ($arr as $k => $v) + foreach ($array as $k => $v) $result[$k] = $func($k, $v); return (array)$result; -- cgit v1.2.3