Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > de.comp.lang.php > #4959
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Detlef Paschke <schabau@t-online.de> |
| Newsgroups | de.comp.lang.php |
| Subject | Re: Ist hier noch jemand? str_replace multiple replacement |
| Date | Fri, 8 Nov 2024 11:25:49 +0100 |
| Message-ID | <vgkov9$l2e0$1@solani.org> (permalink) |
| References | <vgavv1$5s7v$1@solani.org> <lp48b3FdaejU1@mid.individual.net> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 8 Nov 2024 10:25:45 -0000 (UTC) |
| Injection-Info | solani.org; logging-data="690624"; mail-complaints-to="abuse@news.solani.org" |
| User-Agent | Betterbird (Windows) |
| Cancel-Lock | sha1:dxOd90+0vyFj3I4F/x3H9ZPupwE= |
| X-User-ID | eJwFwQkBwDAIA0BLDJqwyuH1L6F3MH4sPwQPFtvat+svpY+JkxlhmjQVtysZoMI5I7ku0AcZWBCZ |
| Content-Language | de-DE |
| In-Reply-To | <lp48b3FdaejU1@mid.individual.net> |
| Xref | csiph.com de.comp.lang.php:4959 |
Show key headers only | View raw
Am 07.11.2024 um 17:31 schrieb Arno Welzel: > Detlef Paschke, 2024-11-04 18:23: > > > [...] >> So funktioniert es zwar, aber schön ist das auch nicht. >> >> str_replace(['./', '../', '\\'], ['','','/'], $datei) > > Was ist daran "nicht schön?". Schöner fände ich das Ersetzungs-Array so, ['','/'] wie es bei preg_replace in allen Varianten geht. In einer Variante eben auch mit logischen ODER Operator, ['/(\.\/|\.\.\/)/', '/(\\\\)/'] und ich hoffte, dass sich das auf str_replace übertragen lässt. Dem ist aber wohl nicht so. Viele Grüße Detlef Paschke -- Das "Zitat des Augenblick" gibt es nur auf: https://schabau.eu Meine "Merkzettel" findet man unter: https://helpdesk.schabau.eu
Back to de.comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
Ist hier noch jemand? str_replace multiple replacement Detlef Paschke <schabau@t-online.de> - 2024-11-04 18:23 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2024-11-04 22:56 +0000
Re: Ist hier noch jemand? str_replace multiple replacement Detlef Paschke <schabau@t-online.de> - 2024-11-05 10:03 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2024-11-05 09:59 +0000
Re: Ist hier noch jemand? str_replace multiple replacement Detlef Paschke <schabau@t-online.de> - 2024-11-05 12:38 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Detlef Paschke <schabau@t-online.de> - 2024-11-05 12:55 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2024-11-05 12:19 +0000
Re: Ist hier noch jemand? str_replace multiple replacement Detlef Paschke <schabau@t-online.de> - 2024-11-05 15:27 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Arno Welzel <usenet@arnowelzel.de> - 2024-11-07 17:31 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Detlef Paschke <schabau@t-online.de> - 2024-11-08 11:25 +0100
Re: Ist hier noch jemand? str_replace multiple replacement Arno Welzel <usenet@arnowelzel.de> - 2024-11-08 17:29 +0100
csiph-web