From: Andrew Dolgov Date: Fri, 1 Dec 2017 09:44:54 +0000 (+0300) Subject: add qmarks function X-Git-Tag: 17.12~99 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=90dafaa9f669a3635d5d77d80e6ee4f9d9723be7;p=tt-rss.git add qmarks function --- diff --git a/include/functions.php b/include/functions.php index 2c93745b..c51ae126 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2537,3 +2537,6 @@ return $bad_tables; } + function arr_qmarks($arr) { + return str_repeat('?,', count($arr) - 1) . '?'; + }