View Full Version : [ubuntu] PHP Script: Extract Data between html tags.
secondstage
October 5th, 2008, 10:35 AM
Is there a function that will extract the data that is between two designated html tags.
enzo12345
October 5th, 2008, 01:51 PM
i have done this before, check out the preg_match() function in the PHP manual.
You would save all the matches into an array, then do whatever you want with them.
secondstage
October 5th, 2008, 02:34 PM
preg_match() returns 0 or 1 based on whether or not a designated string was present in a file, not the data between the tags. Is there something as simple as, extract_the_data('begintag', 'endtag')?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.