glenelkins Posted June 4, 2006 Share Posted June 4, 2006 HiI 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 Link to comment https://forums.phpfreaks.com/topic/11164-explode-question/ Share on other sites More sharing options...
Barand Posted June 5, 2006 Share Posted June 5, 2006 [a href=\"http://www.php.net/split\" target=\"_blank\"]http://www.php.net/split[/a] Link to comment https://forums.phpfreaks.com/topic/11164-explode-question/#findComment-41970 Share on other sites More sharing options...
samshel Posted June 5, 2006 Share Posted June 5, 2006 Use of Regular expressions will be more reliable i guesss in parsing than explode... Link to comment https://forums.phpfreaks.com/topic/11164-explode-question/#findComment-41980 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.