Parsing File Names
| From: | Jason Dubya | Date: | Thu, 28 Feb 2002 23:33:45 +0000 |
| Subject: | Parsing File Names | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-80531@lists.php.net to get a copy of this message | ||
I am trying to create a script that will crawl through a directory, take
each file name, and parse it to get information from the filename. This
is going to be used to place artists and song names into a database.
The filenames are all in the following format: artist - songname.mp3
Is there an easy way to parse that to create two variables: $artist &
$songname?
-- Jason Dubya