This is very possible. let's say you wanted to eliminate the letter "o" from each element in an array. You can do:
$parsed_array = array();
$my_array = array( "foo", "bar" );
$parsed_array = parse_it( $my_array );
function parse_it ( $array_to_parse ) {
$new_array = array();
foreach ( $array_to_parse as $cur ) {
$cur = str_replace("o", "", $cur);
array_push ( $new_array, $cur );
}
return $new_array;
}
the messageboard gets rid of all formatting, sorry if the above code looks ugly. Hope this helps!
-Jim Keller
http://www.centerfuse.net