Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Join array elements with a string
Alias join
<?php implode(string $separator, array $array): string
<?php         $this->addCriteriaCondition($criteria, $columns, $values, $conditions);



        return $this->executeStatement(

            'DELETE FROM ' . $table . ' WHERE ' . implode(' AND ', $conditions),

            $values,

            is_string(key($types)) ? $this->extractTypeValues($columns, $types) : $types

        );
<?php             $types = $this->extractTypeValues($columns, $types);

        }



        $sql = 'UPDATE ' . $table . ' SET ' . implode(', ', $set)

                . ' WHERE ' . implode(' AND ', $conditions);



        return $this->executeStatement($sql, $values, $types);
<?php         }



        $sql = 'UPDATE ' . $table . ' SET ' . implode(', ', $set)

                . ' WHERE ' . implode(' AND ', $conditions);



        return $this->executeStatement($sql, $values, $types);

    }
<?php         }



        return $this->executeStatement(

            'INSERT INTO ' . $table . ' (' . implode(', ', $columns) . ')' .

            ' VALUES (' . implode(', ', $set) . ')',

            $values,

            is_string(key($types)) ? $this->extractTypeValues($columns, $types) : $types
<?php         return $this->executeStatement(

            'INSERT INTO ' . $table . ' (' . implode(', ', $columns) . ')' .

            ' VALUES (' . implode(', ', $set) . ')',

            $values,

            is_string(key($types)) ? $this->extractTypeValues($columns, $types) : $types

        );
<?php             $chunks[] = sprintf('(%s=%s)', $key, $string);

        }



        return implode('', $chunks);

    }
<?php             $chunks[] = sprintf('%s=%s', $key, $value);

        }



        return new self(implode(';', $chunks));

    }
<?php     public function getSQL(): string

    {

        return implode('', $this->buffer);

    }
<?php             }

        }



        $sql = 'ALTER SESSION SET ' . implode(' ', $vars);

        $args->getConnection()->executeStatement($sql);

    }
<?php     public static function unknownDriver(string $unknownDriverName, array $knownDrivers): self

    {

        return new self("The given 'driver' " . $unknownDriverName . ' is unknown, ' .

            'Doctrine currently supports only the following drivers: ' . implode(', ', $knownDrivers));

    }



    public static function invalidWrapperClass(string $wrapperClass): self
<?php     public function getSQL(): string

    {

        return implode('', $this->convertedSQL);

    }
<?php     private function appendTypedParameter(array $values, $type): void

    {

        $this->convertedSQL[] = implode(', ', array_fill(0, count($values), '?'));



        $index = count($this->convertedParameteres);
<?php     public function getConcatExpression()

    {

        return implode(' || ', func_get_args());

    }
<?php         }



        if (isset($options['primary']) && ! empty($options['primary'])) {

            $columnListSql .= ', PRIMARY KEY(' . implode(', ', array_unique(array_values($options['primary']))) . ')';

        }



        if (isset($options['indexes']) && ! empty($options['indexes'])) {
<?php         $query = 'ALTER TABLE ' . $table . ' ADD CONSTRAINT ' . $constraint->getQuotedName($this);



        $columnList = '(' . implode(', ', $constraint->getQuotedColumns($this)) . ')';



        $referencesClause = '';

        if ($constraint instanceof Index) {