Jump to content

Seperate at -


Sleeper

Recommended Posts

I am working on a shoutcast now playing script. The $songtitle comes out like..

 

artist name - song name

 

However I want to just use the artist name and song name separate. So is there a way using php to grab everything before the "-" for one and then everything after the "-" for the other? So I could then have

 

Artist: artist Name

Title : song name

 

Unfortunately shoutcast doesn't provide this info separately so I figured there has to be a php trick to do this.

Link to comment
https://forums.phpfreaks.com/topic/241926-seperate-at/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.