diff options
author | Urban Müller | 2008-06-20 19:18:49 +0000 |
---|---|---|
committer | Urban Müller | 2008-06-20 19:18:49 +0000 |
commit | 4f531ee59521e4bd10fca1010e22d88066b43620 (patch) | |
tree | 4799e71a416c432c23d9cfc3f8d4fddb390534a7 /it.class | |
parent | 5a680aa8325deb278f97dcb24548b0802c5fdb7f (diff) | |
download | itools-4f531ee59521e4bd10fca1010e22d88066b43620.tar.gz itools-4f531ee59521e4bd10fca1010e22d88066b43620.tar.bz2 itools-4f531ee59521e4bd10fca1010e22d88066b43620.zip |
it::map docs
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;"); |