<?php
$old = "xyz abc def";
$newstr = ereg_replace(" ","",$old);
?>

-----Original Message-----
From: Chuck Barnett [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 2:01 PM
To: PHP General List
Subject: [PHP] strip spaces from inside string


Say I have a string "xyz abc def"  and I want to remove all of the spaces
withing the string to create a new one.  What's the best way?

Thanks,
ChuckB


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to