Re: Replace illegal filename chars???
| From: | Kevin Stone | Date: | Wed, 23 Oct 2002 20:20:42 +0000 |
| Subject: | Re: Replace illegal filename chars??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121169@lists.php.net to get a copy of this message | ||
I believe you meant, ereg_replace();
-Kevin
----- Original Message -----
From: "Rick Emery" <remery@emeryloftus.com>
To: <php-general@lists.php.net>
Sent: Wednesday, October 23, 2002 1:57 PM
Subject: Fw: [PHP] Replace illegal filename chars???
> regex_replace()
> This was a discussion item yesterday.
> ----- Original Message -----
> From: "Shawn McKenzie" <nospam@mckenzies.net>
> To: <>
> Sent: Wednesday, October 23, 2002 2:40 PM
> Subject: [PHP] Replace illegal filename chars???
>
>
> Anyone have a good way to remove from a string all characters and spaces
> that are illegal in a filename???
>
> $string = "What's up Doc?";
>
> I need:
>
> $filename = "whatsupdoc";
>
> TIA
> -Shawn
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>