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

Tag Archives: csv

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

    • Add custom icons to MeshCentral (part 3 – styles)
    • Add custom icons to MeshCentral (part 2 – night mode)
    • Add custom icons to MeshCentral (part 1)
    • VPS Benchmarks update: Amazon EC2 and Lightsail, Azure, Contabo, DigitalOcean, Google, Hostworld, Linode, OVH, UpCloud, VPSServer, VPS.net, Vultr
    • Install/Update OSSIM/OSSEC agent (AlmaLinux 8.6 or CentOS)
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