note 59615 deleted from function.str-ireplace by mazzanet

From: Date: Sun, 11 Dec 2005 07:07:45 +0000
Subject: note 59615 deleted from function.str-ireplace by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-99947@lists.php.net to get a copy of this message
Note Submitter: mishapsuedonym at gmail dot com ---- Note that if you want to get rid of all whitespace characters (or any combination that includes a space and other characters) by replacing them with a null string, then you have to replace the space seperate from the others (all of which have an escape key). So, you'll have to have two lines that look like this: $somestring=str_replace(" ", "", $somestring); $somestring=str_replace("\r\n\t\n\0\x0B", "", $somestring);

« previous php.notes (#99947) next »