class myfilter extends php_user_filter {function write($data) {$data = substr($data,1); $written_by_parent = parent::write($data); return ($written_by_parent + 1);}}
注意 If your filter alters the length of data, for example by removing the first character, before passing onto parent::write($data); it must be certain to include that stolen character in the return count.