Habari\PGSQLConnection::replace_concat PHP Method

replace_concat() public method

Replaces the MySQL CONCAT function with PostgreSQL-compatible statements
See also: PGSQLConnection::sql_t()
public replace_concat ( array $matches ) : string
$matches array Matches from the regex in sql_t()
return string The replacement for the MySQL SQL
    function replace_concat($matches)
    {
        $innards = explode(',', $matches[1]);
        return implode(' || ', $innards);
    }