the entire ereg family of functions are deprecated in PHP and will at some point be removed from the language. The replacement is the preg family. For the most part, the change is simple:
preg_replace('/[^<>]>/i', '', $question);
^-- ^ ^^
- change ereg to preg
- add delimeters (
/)
- for case insensitive matches (ereg
i), add the i modifier