Jump to content


Photo

explode() question


  • Please log in to reply
2 replies to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 04 June 2006 - 03:55 PM

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
http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 05 June 2006 - 08:42 AM

[a href=\"http://www.php.net/split\" target=\"_blank\"]http://www.php.net/split[/a]
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 samshel

samshel
  • Members
  • PipPipPip
  • Advanced Member
  • 837 posts

Posted 05 June 2006 - 11:05 AM

Use of Regular expressions will be more reliable i guesss in parsing than explode...


Cheers,
SamShel
-----------------------------------------------
--: FUTURE IS LINUX :--
-----------------------------------------------




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users