Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Created April 16, 2016 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/28042cfedd2757c27bdbf4733cd562c1 to your computer and use it in GitHub Desktop.
Save jpluimers/28042cfedd2757c27bdbf4733cd562c1 to your computer and use it in GitHub Desktop.
Convert PHP gd_info to HTML table as it shows a tad bit more than phpinfo.
<?php
echo "<h1>gd_info</h1>";
$gdInfo = gd_info();
echo "<table>";
foreach($gdInfo as $key=>$value) {
echo "<tbody>";
echo "<tr>";
echo "<td class='e'>" . $key . "</td>";
echo "<td class='v'>" . $value . "</td>";
echo "</tbody>";
}
echo "</table>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment