Trying to get rid of all space and tab characters
Posted: Wed Sep 27, 2006 5:12 pm
Right now I'm using a standalone php binary to generate files for a look up table on some standalone docs... though that isn't the part I'm having troubles with.
I'm trimming all extra spaces and tab characters with trim() and rtrim()... it does a decent job, however I still get some random tab and/or space character spam, anyone else run into this and know what the problem is and maybe a way to fix it ?
This is somewhat detrimental since I am scanning a mass ammount of html files and generating a lookup table based on single words, so sometimes I get an entry with a massive ammount of either tabs or spaces in them that slipped through the trimming process.
Any help would be appreciated
I'm trimming all extra spaces and tab characters with trim() and rtrim()... it does a decent job, however I still get some random tab and/or space character spam, anyone else run into this and know what the problem is and maybe a way to fix it ?
This is somewhat detrimental since I am scanning a mass ammount of html files and generating a lookup table based on single words, so sometimes I get an entry with a massive ammount of either tabs or spaces in them that slipped through the trimming process.
Any help would be appreciated