public function quote($string) { return str_replace(array('\\', ' ', '*', '(', ')'), array('\\5c', '\\20', '\\2a', '\\28', '\\29'), $string); }