title: need to delete new line last of txt using php
body: <ol>
  <li>İstanbul  04:22</li>
  <li>Bursa00  03:11</li>
  <li>Ankara0 02:53 </li>
  <li>İzmir000 02:34  </li>
  <li>Kayseri0 02:47 </li>
  <li></li>
  </ol>
  
  <p>I saved this lines to the txt by using curl but I couldnt delete the line 6. It is not blank. because i can delete blank lines. When i count the lines it shown 5 and when I make new functions it marks 6. I tried all preg match, str replace, preg replace but i failed. When I open the txt mouse cursor always on sixth'. What should i do (for "\n" i guess) ?</p>