SqlTrait.php 232 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <?php declare(strict_types=1); namespace ACP\Sorting\Model; trait SqlTrait { protected function esc_sql_array(array $array): string { return sprintf("'%s'", implode("','", array_map('esc_sql', $array))); } }