diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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;"); |