I have a list of links in my db column and when I grab it from the db it looks like this (obviously, it's much longer in reality):
http://example.com/asdfasdf/erwr
http://asdfasdfas.com/asdfasd/fasdf/asdfas.mp3
http://asdfa.com/adsf/asdf/asdf/asdf.html
or it can looks like this:
http://example.com/asdfasdf/erwrhttp://asdfasdfas.com/asdfasd/fasdf/asdfas.mp3
or it can looks like this:
http://example.com/asdfasdf/erwr, http://asdfasdfas.com/asdfasd/fasdf/asdfas.mp3
so I think that the indication of a new link is the beginning http://
which will probably be not in the url itself except in the begining of that url.
So, the problem is how to explode this list in PHP and create an array or object with links and throw away all the other html like <br>
or commas and spaces etc.
Any idea how to do that in PHP?