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 Quote 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] Quote 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... Quote Link to comment https://forums.phpfreaks.com/topic/11164-explode-question/#findComment-41980 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.