Re: Fill strings with  

From: Date: Mon, 22 Mar 2004 12:12:37 +0000
Subject: Re: Fill strings with  
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181129@lists.php.net to get a copy of this message
$str = str_replace(' ', '&nbsp;', $str); $str = preg_replace('/\s+/', '&nbsp;', $str); $str = ereg_replace('[[:space:]]+', '&nbsp;', $str); Good Luck, Firman ----- Original Message ----- From: "Merlin" <news.groups@web.de> To: <php-general@lists.php.net> Sent: Monday, March 22, 2004 7:02 PM Subject: [PHP] Fill strings with &nbsp; > Hi there, > > I was searching for a php function which fills empty spaces in string > varibales with "&nbsp;", but could not find one. > > Is there such thing? > > Thanx for any help, > > Merlin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#181129) next »