note 81366 added to function.str-replace

From: Date: Mon, 25 Feb 2008 01:06:56 +0000
Subject: note 81366 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-136465@lists.php.net to get a copy of this message
In response to Guy Gordon's script solution to remove multiple strings. I could not get this to work, Im unsure why but a slight change in the code resulted in this working for me. --------- $chrcount = strlen($string); while($n <= $chrcount){ $string = str_replace(" ", " ", $string); $n++; } --------- Dal =) ---- Server IP: 83.170.119.58 Probable Submitter: 88.202.250.90 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/81366 Del: integrated -- https://master.php.net/note/delete/81366/integrated Del: useless -- https://master.php.net/note/delete/81366/useless Del: bad code -- https://master.php.net/note/delete/81366/bad+code Del: spam -- https://master.php.net/note/delete/81366/spam Del: non-english -- https://master.php.net/note/delete/81366/non-english Del: in docs -- https://master.php.net/note/delete/81366/in+docs Del: other reasons-- https://master.php.net/note/delete/81366 Reject -- https://master.php.net/note/reject/81366 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136465) next »