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
$string = str_replace(' ','',$string);
-Original Message-
From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] space in strings
Some time ago I needed a function that remove space in strings.
Sure there is one
In article 001301c12476$3420f300$82602c3f@2pqjp01,
[EMAIL PROTECTED] (Jack Dempsey) wrote:
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
$string =
3 matches
Mail list logo