From 5ec2d4213ae39d9e6fcf898aa15b53d40e954629 Mon Sep 17 00:00:00 2001 From: clestial Date: Sun, 7 Jan 2018 13:51:59 +0100 Subject: [PATCH] replace each() with foreach() each() is deprecated in PHP 7.2. --- tcpdi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpdi.php b/tcpdi.php index 7faf417..3e2bb71 100644 --- a/tcpdi.php +++ b/tcpdi.php @@ -626,7 +626,7 @@ function pdf_write_value(&$value) reset ($value[1]); - while (list($k, $v) = each($value[1])) { + foreach ($value[1] as $k => $v) { $this->_straightOut($k . ' '); $this->pdf_write_value($v); } @@ -841,4 +841,4 @@ function hex2str($hex) { function str2hex($str) { return current(unpack('H*', $str)); } -} \ No newline at end of file +}