note 46169 deleted from function.ereg-replace by tomsommer
| From: | tomsommer@php.net | Date: | Fri, 01 Oct 2004 20:47:04 +0000 |
| Subject: | note 46169 deleted from function.ereg-replace by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77715@lists.php.net to get a copy of this message | ||
Note Submitter: Newroz at KurdistanRadio dot com
----
To replace 2 backslashes with one slash I tried
$path = ereg_replace("[\\]", "/", $path);
but didnt work.
but this does work
$path = ereg_replace("[\][\]", "/", $path);