What function removes apostrophes when making a slug?

Use this function to remove the apostrophe:

preg_replace( "/[:’]/", "", $title );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)