I'm still new to PHP and I couldn't find this in the manual because I'm not sure of the name of the function. I have an array with These values:
$files[] =
[0] => 01_Nhemamusasa.mp3
[1] => 02_Kari_Mudande.mp3
[2] => 03_Chikende.mp3
[3] => 04_Karinge_Zuva.mp3
[4] => 05_Mbirimo.mp3
[5] => 06_Muchenjedza_Mutonga.mp3
[6] => 07_Skokianna.mp3
[7] => 08_Mbavarira.mp3
What I need to do is truncate the contents to get rid of the part before the _ and get rid of the filetype. I'd like to also convert the underscores found in the middle of the Arrays [1] and [5] (in this example) to become spaces. In other words, I need to convert these file names to be an array of the actual names of the songs.
Thank for any help!
Edit: My host is using PHP 5.2.12