Please drop a line if you know more way of doing it.
Habtom
coopster
9:59 pm on Jun 26, 2006 (gmt 0)
PHP5 has a nice function to do this for your PHP source code, php_strip_whitespace [php.net]. The User Contributed notes on this page might also interest you.