Re: take text before '-' and after it
| From: | Antti | Date: | Thu, 12 Dec 2002 16:00:30 +0000 |
| Subject: | Re: take text before '-' and after it | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128025@lists.php.net to get a copy of this message | ||
ed@home.homes2see.com wrote:
Wouldn't it be simpler to just remove the '-'? $var = str_replace("-","",$var); Ed On Thu, 12 Dec 2002, Antti wrote:No, I don't want that 'couse the database has columns artist and song and I want to fill them with correct values. The thing is to read the files and put the values into an array. but I don't know how to do it...? anttiHow can I take some text before the mark - and after it and put them for example in array. The purpose of this is to read trough mp3 files which are in the form of artist - song.mp3 and put them into a text file so I can put them into mysql db. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php