From 6442494822d12c23cdd609031c4039d3309b64f6 Mon Sep 17 00:00:00 2001 From: Cristei Gabriel Date: Mon, 18 Dec 2023 03:19:59 +0200 Subject: dynamic ascii art --- web/Result.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 web/Result.php (limited to 'web/Result.php') diff --git a/web/Result.php b/web/Result.php new file mode 100644 index 0000000..52e4c83 --- /dev/null +++ b/web/Result.php @@ -0,0 +1,31 @@ +ascii =& $ascii; + } + + public function writeFile($path, $lineEnding = "\n") { + $fh = fopen($path,'w'); + foreach($this->ascii as $line) { + foreach($line as $value) { + $value = $this->transformValue($value); + fputs($fh, $value); + } + fputs($fh,$lineEnding); + + } + fclose($fh); + return $this; + } +} -- cgit v1.2.3