Does anyone know how to remove white space in php (without removing the spaces which occur in text etc)???? To get a document that looks like this;

<A href="#1">
Lampard denies quit

</A>

to this???

<A href="#1">Lampard denies quit talk</A>





I've tried various different configurations simialr to this but can't get it to work:

$printing[1] = ereg_replace([:space:], "", $printing[1]);