0

I have link like this:

<ul>
 <li>1</li>
 <li>2</li>
 <li>3</li>
 <li>4</li>
</ul>

I want only 2 and 3 write to text file using php.Can anyone help me with this? Thanks for help me:)

july77
  • 673
  • 2
  • 8
  • 24
  • Those aren't links.. do you want to extract the line items content? Take a look at http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php and `file_put_contents`. – chris85 Nov 03 '15 at 04:20
  • if you want to use particular 2 and 3
  • tag. you can give them event id.
  • – Siddhartha esunuri Nov 03 '15 at 04:22
  • no I suppose those numbers are link just like
    – july77 Nov 03 '15 at 04:22
  • Look at the linked thread it should show you how you can parse HTML/XML. Your question is unclear as your comment differs from your questions comment. – chris85 Nov 03 '15 at 04:24
  • I REALLY DONT UNDERSTAND – july77 Nov 03 '15 at 04:25
  • Don't understand the content on the link provided? – chris85 Nov 03 '15 at 04:27