Re: Question about strlen I think

From: Date: Sun, 15 Jul 2001 20:21:17 +0000
Subject: Re: Question about strlen I think
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57981@lists.php.net to get a copy of this message
In article <20010715162831.10040.qmail@pb1.pair.com>, denniskaan@multiweb.nl (Dennis Kaandorp) wrote: > Is there a way to replace the spaces between the paths? > This is what I mean: > /uploads/ /by/ /dennis/ > must become > /uploads/<4sp>/by/<3sp>dennis/ See <http://php.net/preg-replace>. You can use the "e" or "f" modifier to count the number of captured spaces and write that number into your "<4sp>" replacement pattern. -- CC

« previous php.general (#57981) next »