Date: 07/15/01
- Next message: Minardi boy: "[PHP] I want to learn this!"
- Previous message: Christopher Kaminski: "Re: [PHP] Simple (??) control structure problem"
- In reply to: Dennis Kaandorp: "[PHP] Question about strlen I think"
- Next in thread: Dennis Kaandorp: "[PHP] Re: Question about strlen I think"
- Reply: Dennis Kaandorp: "[PHP] Re: Question about strlen I think"
- Reply: Dennis Kaandorp: "[PHP] Re: Question about strlen I think"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <20010715162831.10040.qmail <email protected>>,
denniskaan <email protected> (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-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Minardi boy: "[PHP] I want to learn this!"
- Previous message: Christopher Kaminski: "Re: [PHP] Simple (??) control structure problem"
- In reply to: Dennis Kaandorp: "[PHP] Question about strlen I think"
- Next in thread: Dennis Kaandorp: "[PHP] Re: Question about strlen I think"
- Reply: Dennis Kaandorp: "[PHP] Re: Question about strlen I think"
- Reply: Dennis Kaandorp: "[PHP] Re: Question about strlen I think"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

