Fw: [PHP] Replace illegal filename chars???
| From: | Rick Emery | Date: | Wed, 23 Oct 2002 19:57:45 +0000 |
| Subject: | Fw: [PHP] Replace illegal filename chars??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121166@lists.php.net to get a copy of this message | ||
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