Getting points from html table with php -
so have automate process bunch of notes new version of product taken main page , put them somewhere else. can connect page have from, don't know how pick list of notes , preferably put them in array or list can use them somewhere else. html page looks like(the part matters anyway):
<!-- start summary --> <ul> <li>point 1</li> <li>point 2</li> <li>point 3</li> </ul> <!-- end summary -->
it starts "start summary" comment , ends "end summary" comment well. , number of points anything.
lot
ok, mean have "text":
<!-- start summary --> <ul> <li>point 1</li> <li>point 2</li> <li>point 3</li> </ul> <!-- end summary -->
and have "parse" php in order view if on webpage new point has been added right?
in php it's helpful function preg_split , iterate on returned array:
foreach(preg_split("/((\r?\n)|(\r\n?))/", $subject) $line){ //here can loop on each line , logic }
where subject text (it can whole page , parse line line).
is looking for?
Comments
Post a Comment