Pheasant\Database\Binder::reduce PHP Method

reduce() public method

Reduces an array of values into a bracketed, quoted, comma delimited list
public reduce ( $array ) : string
return string
    public function reduce($array)
    {
        $tokens = array();
        foreach ($array as $a) {
            $tokens[] = $this->quote($this->escape($a));
        }
        return $tokens ? '(' . implode(',', $tokens) . ')' : '(null)';
    }