From 3ae517757c61daa5e1a6700925af095b1ee4c5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 3 Jan 2020 00:35:44 +0100 Subject: have fun --- jsontohtml.php | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 jsontohtml.php (limited to 'jsontohtml.php') diff --git a/jsontohtml.php b/jsontohtml.php new file mode 100755 index 0000000..6412c75 --- /dev/null +++ b/jsontohtml.php @@ -0,0 +1,8 @@ +#!/usr/bin/env php +table,td,tr,th{border:1px solid black;}"; foreach ($arr as $key => $val) { $str .= ""; $str .= ""; $str .= ""; } $str .= "
$key"; if (is_array($val)) { if (!empty($val)) { $str .= self::_arrayToHtmlTableRecursive($val); } } else { $str .= "$val"; } $str .= "
"; return $str;} +} +file_put_contents($argv[2], jsonHtml::jsonToDebug(file_get_contents($argv[1]))); +?> -- cgit v1.2.3