NAME
  map_array - Apply a function for all elements in an array

SYNOPSIS 
  mixed *map_array(mixed *arr, string fun, object ob, mixed extra)

DESCRIPTION
  Returns an array holding the items of 'arr' mapped through ob->fun().
  The function 'fun' in 'ob' is called for each element in 'arr' with
  that element as parameter. A second parameter 'extra' is sent in each
  call if given. Principal function:

	foreach (index) arr[index] = ob->fun(arr[index],extra);

  The value returned by ob->fun(arr[.index.], extra) replaces the existing 
  element in the array.

SEE ALSO

Help topics available:
_m_delete allocate atoi capitalize clear_bit
crypt ctime explode filter_array filter_mapping
implode intp itoa lower_case m_delete
m_indices m_sizeof m_values map_array map_mapping
mappingp member_array mkmapping objectp pointerp
replace set_bit sizeof sort_array sscanf
stringp strlen test_bit unique_array upper_case

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 125 since November 2019.
This file was last modified: June 2000.