Jump to content

Archived

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

glenelkins

explode() question

Recommended Posts

Hi

I am writing a parser to take images and information from another pages HTML source. I have managed to take out the image from a line bing found with <img src> in it and taking the image filename from between the '' with : explode("'",$source);

Is there a way to use explode to return information between two different seperators, in my example i want to find text between ><. for example <B>TEXT</B> i want the "TEXT" between ><

Cheers

Share this post


Link to post
Share on other sites
[a href=\"http://www.php.net/split\" target=\"_blank\"]http://www.php.net/split[/a]

Share this post


Link to post
Share on other sites
Use of Regular expressions will be more reliable i guesss in parsing than explode...

Share this post


Link to post
Share on other sites

×

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.