RE: [PHP] space in strings

From: Date: Tue, 14 Aug 2001 04:04:24 +0000
Subject: RE: [PHP] space in strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62556@lists.php.net to get a copy of this message
$string = str_replace(' ','',$string); -----Original Message----- From: Martin Skjoldebrand [mailto:chimbis@bahnhof.se] Sent: Tuesday, August 14, 2001 12:03 AM To: php-general@lists.php.net Subject: [PHP] space in strings Some time ago I needed a function that remove space in strings. Sure there is one that remove space at the start of the string, and one that removes trailing space - but is there one that removes ALL spaces from a string? Like: $string = "this is a string"; rmspc($string); // $string is now "thisisastring" Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#62556) next »