芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/lib/adodb/rsfilter.inc.php
$v) { $arr[$k] = ucwords($v); } } $rs = RSFilter($rs,'do_ucwords'); */ function RSFilter($rs,$fn) { if ($rs->databaseType != 'array') { if (!$rs->connection) return false; $rs = $rs->connection->_rs2rs($rs); } $rows = $rs->RecordCount(); for ($i=0; $i < $rows; $i++) { if (is_array ($fn)) { $obj = $fn[0]; $method = $fn[1]; $obj->$method ($rs->_array[$i],$rs); } else { $fn($rs->_array[$i],$rs); } } if (!$rs->EOF) { $rs->_currentRow = 0; $rs->fields = $rs->_array[0]; } return $rs; }