View Single Post

  #3 (permalink)  
Old 06-30-2003
James Sleeman
 
Posts: n/a
Default Re: Quick String Query...

Jamie Wright wrote:

> I have been using PHP for a while now, although my knowledge of the
> inbuilt functions is pretty lacking. I am trying to remove a 'space' from
> the middle of a string. I reckon I could split the string at teh space,


$string = preg_replace('/\s+/', '', $string);

--
James Sleeman
Gogo:Code http://www.gogo.co.nz/
Email domain : gogo.co.nz see user in from header!
Reply With Quote