Re: remove from a string
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: remove from a string

From: Chung Leong <chernyshevsky@hotmail.com>
Date: Fri Aug 26 2005 - 04:14:43 CEST

But then you end up replacing every instance of the substring should it
appears more than once. Better to just glue the two remaining ends
together:

substr($s, 0, 4) . substr($s, 4 + 5);
Received on Mon Oct 24 02:09:34 2005