summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2008-07-15 14:44:27 +0000
committerUrban Müller2008-07-15 14:44:27 +0000
commitf1a90f3fb6effcb1d3a5e59e9c138fa005c3cf98 (patch)
treea5ed861741df64db67a0a02b92234e6e596c4939 /it.class
parent2e60e282a8de8f97effd98ea2deeea26929be52a (diff)
downloaditools-f1a90f3fb6effcb1d3a5e59e9c138fa005c3cf98.tar.gz
itools-f1a90f3fb6effcb1d3a5e59e9c138fa005c3cf98.tar.bz2
itools-f1a90f3fb6effcb1d3a5e59e9c138fa005c3cf98.zip
nicer argument names
Diffstat (limited to 'it.class')
-rw-r--r--it.class10
1 files 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;