Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Split a string by a string
<?php explode(string $separator, string $string, int $limit = PHP_INT_MAX): array
<?php     public function quoteIdentifier($str)

    {

        if (strpos($str, '.') !== false) {

            $parts = array_map([$this, 'quoteSingleIdentifier'], explode('.', $str));



            return implode('.', $parts);

        }
<?php     protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)

    {

        if (strpos($tableName, '.') !== false) {

            [$schema]     = explode('.', $tableName);

            $oldIndexName = $schema . '.' . $oldIndexName;

        }
<?php     protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)

    {

        if (strpos($tableName, '.') !== false) {

            [$schema]     = explode('.', $tableName);

            $oldIndexName = $schema . '.' . $oldIndexName;

        }
<?php     {

        $whereClause = $namespaceAlias . ".nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND ";

        if (strpos($table, '.') !== false) {

            [$schema, $table] = explode('.', $table);

            $schema           = $this->quoteStringLiteral($schema);

        } else {

            $schema = 'ANY(current_schemas(false))';
<?php     protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)

    {

        if (strpos($tableName, '.') !== false) {

            [$schema]     = explode('.', $tableName);

            $oldIndexName = $schema . '.' . $oldIndexName;

        }
<?php     protected function getCreateColumnCommentSQL($tableName, $columnName, $comment)

    {

        if (strpos($tableName, '.') !== false) {

            [$schemaSQL, $tableSQL] = explode('.', $tableName);

            $schemaSQL              = $this->quoteStringLiteral($schemaSQL);

            $tableSQL               = $this->quoteStringLiteral($tableSQL);

        } else {
<?php     protected function getAlterColumnCommentSQL($tableName, $columnName, $comment)

    {

        if (strpos($tableName, '.') !== false) {

            [$schemaSQL, $tableSQL] = explode('.', $tableName);

            $schemaSQL              = $this->quoteStringLiteral($schemaSQL);

            $tableSQL               = $this->quoteStringLiteral($tableSQL);

        } else {
<?php     protected function getDropColumnCommentSQL($tableName, $columnName)

    {

        if (strpos($tableName, '.') !== false) {

            [$schemaSQL, $tableSQL] = explode('.', $tableName);

            $schemaSQL              = $this->quoteStringLiteral($schemaSQL);

            $tableSQL               = $this->quoteStringLiteral($tableSQL);

        } else {
<?php     private function getTableWhereClause($table, $schemaColumn, $tableColumn)

    {

        if (strpos($table, '.') !== false) {

            [$schema, $table] = explode('.', $table);

            $schema           = $this->quoteStringLiteral($schema);

            $table            = $this->quoteStringLiteral($table);

        } else {
<?php         }



        if (strpos($name, '.') !== false) {

            $parts            = explode('.', $name);

            $this->_namespace = $parts[0];

            $name             = $parts[1];

        }
<?php     public function getQuotedName(AbstractPlatform $platform)

    {

        $keywords = $platform->getReservedKeywordsList();

        $parts    = explode('.', $this->getName());

        foreach ($parts as $k => $v) {

            $parts[$k] = $this->_quoted || $keywords->isKeyword($v) ? $platform->quoteIdentifier($v) : $v;

        }
<?php             return $options;

        }



        foreach (explode(' ', $string) as $pair) {

            $parts = explode('=', $pair, 2);



            $options[$parts[0]] = $parts[1] ?? true;
<?php         }



        foreach (explode(' ', $string) as $pair) {

            $parts = explode('=', $pair, 2);



            $options[$parts[0]] = $parts[1] ?? true;

        }
<?php         $searchPaths = $this->_conn->fetchOne('SHOW search_path');

        assert($searchPaths !== false);



        $schema = explode(',', $searchPaths);



        if (isset($params['user'])) {

            $schema = str_replace('"$user"', $params['user'], $schema);
<?php         $localColumns   = array_map('trim', explode(',', $values[1]));

        $foreignColumns = array_map('trim', explode(',', $values[3]));

        $foreignTable   = $values[2];