filter_array
final_realms_fluffos_v1/lib/doc/driver/efuns/arrays/filter_array · 724 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
.\"return a selective sub-array .DT filter_array Discworld driver help filter_array Name .SI 5 filter_array() - return a selective sub-array .EI Synopsis .SI 5 mixed *filter_array( mixed *arr, string fun, object ob, mixed extra ); .EI Description .SP 5 5 filter_array() returns an array holding the items of <arr> which passed sucessfully through the function <fun> found in object <ob>. The function <fun> is called for each element in <arr> with that element as parameter. The second parameter <extra> is sent in each call if given. An object is considered to have passed sucessfully through <fun> (and hence is included in the return array) if <fun> returns 1. If <arr> is not an array, then 0 will be returned. .EP