PHP – Remove all tabs from string-ThrowExceptions

Exception or error: I am able to remove all single tabs from a string: // Copying and pasting the tab directly $txt = str_replace(” “, “”, $txt); This only removes single tabs, but not double tabs. I then tried this, thinking that “\t” would be sufficient to find the tabs: $txt = preg_replace(‘/\t/’, ”, $txt); …