im new to php and i still dont know all, but here is what i need.
$entry= "Beyonce - Halo.mp3"
I seperate artist and title using this
"artist" => basename(strstr(" ".ucwords($entry), "- ", true )),
"title" => basename(substr(strrchr(ucwords($entry), "- "), 1), ".mp3"),
Can anyone tell me how to get the next text after " - " not from last, because in some cases we had song like this
$entry= "Beyonce - Halo - AlbumName.mp3"
and it get the "AlbumName" as title and its wrong! How can i fix it? Thank you.