private static function rewriteQuery($query, $placeholderPosition, array $newPlaceholders)
    {
        return substr($query, 0, $placeholderPosition).
            implode(', ', $newPlaceholders).
            substr($query, $placeholderPosition + 1);
    }
private static function rewriteQuery($query, $placeholderPosition, array $newPlaceholders)
    {
        return substr($query, 0, $placeholderPosition).
            implode(', ', $newPlaceholders).
            substr($query, $placeholderPosition + 1);
    }
private static function rewriteQuery ( $ query , $ placeholderPosition , array $ newPlaceholders ) { return substr ( $ query , 0 , $ placeholderPosition ) . implode ( ', ' , $ newPlaceholders ) . substr ( $ query , $ placeholderPosition + 1 ) ; }
Rewrites the query according to the placeholder position and new placeholders.

Example:
- parameters:
- query: SELECT * FROM foo WHERE foo IN (?)
^ (32)
- placeholderPosition: 32
- newPlaceholders: array('?', '?', '?')
- result:
- rewrittenQuery: SELECT * FROM foo WHERE foo IN (?, ?, ?)

@param string  $query               The query.
@param integer $placeholderPosition The placeholder position.
@param array   $newPlaceholders     The new placeholders.

@return string The rewritten query.
Rewrites the query according to the placeholder position and new placeholders .