Is it good to declare a class with many methods ?
Or, is it better to use flags ?
Which one performs faster ?
Example
class Filter {
public function filterspecialchar($input){;}
public function filterurl($input){;}
public function filteremail($input){;}
}
class Filter {
CONST SPECIALCHAR = 1;
CONST URL = 2;
CONST EMAIL = 3;
public function filter($input, $flags) {;}
}