private function escapeLikeString($str)
    {
        if (false !== strpos($str, '%')) {
            $str = str_replace("%", "\%", $str);
        }

        if (false !== strpos($str, '_')) {
            $str = str_replace("_", "\_", $str);
        }
        
        return $str;
    }
private function escapeLikeString($str)
    {
        if (false !== strpos($str, '%')) {
            $str = str_replace("%", "\%", $str);
        }

        if (false !== strpos($str, '_')) {
            $str = str_replace("_", "\_", $str);
        }
        
        return $str;
    }
private function escapeLikeString ( $ str ) { if ( false !== strpos ( $ str , '%' ) ) { $ str = str_replace ( "%" , "\%" , $ str ) ; } if ( false !== strpos ( $ str , '_' ) ) { $ str = str_replace ( "_" , "\_" , $ str ) ; } return $ str ; }
Escape the characters % and _ in the given string
@param string $str
@return string
Escape the characters % and _ in the given string