note 12579 deleted from function.str-replace by philip
| From: | philip@php.net | Date: | Mon, 04 Feb 2002 12:47:06 +0000 |
| Subject: | note 12579 deleted from function.str-replace by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26214@lists.php.net to get a copy of this message | ||
For ppl new to PHP
If you hva a user enter a harddrive-url in a textarea you use this line so that php doesn't add
an extra '\'
Like:
c:\My Documentes
Use :
$array = str_replace('\\\\','\\',$array);
It wasted alot of time over this