From 4f531ee59521e4bd10fca1010e22d88066b43620 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 20 Jun 2008 19:18:49 +0000 Subject: it::map docs --- it.class | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/it.class b/it.class index aa12435..6fc2d9c 100644 --- a/it.class +++ b/it.class @@ -643,6 +643,11 @@ function date($format = "", $stamp = null) return date($formatstring, $stamp); } +/** + * 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 + */ function map($expr, $arr) { $func = create_function('$k,$v', "return $expr;"); -- cgit v1.2.3