Facebook Twitter RSS
  Menu
Skip to content
  • Home
  • About
Facebook Twitter RSS

Tag Archives: table

Convert HTML table to CSV

By cheesefather | August 11, 2016 - 11:53 am |August 11, 2016 Linux, Windows
Leave a comment

Just a quick one – I needed a script to convert a table to a csv, so this is what I came up with. See the annotations for notes: //html table is in variable $report $report = str_replace(array(“\n”, “\r”), “”, $report); //remove existing line breaks $report = str_replace(‘”‘, ‘\”‘, $report);… Continue reading →

Tagged conver, csv, html, php, table
  • Recent Posts

    • Install PHP 7.4 on CentOS 8
    • Install MySQL 5.6 on CentOS 8
    • VPS Benchmarks: Amazon EC2 and Lightsail, Azure, DigitalOcean, Google, Hostworld, Linode, OVH, UpCloud, VPSServer, VPS.net, Vultr
    • Install OSSIM/OSSEC agent (CentOS 7)
    • VPS video encoding speed comparison
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla massa diam, tempus a finibus et, euismod nec arcu. Praesent ultrices massa at molestie facilisis.
| Powered by Mantra & WordPress.
Facebook Twitter RSS