array_unshift

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Prepend one or more elements to the beginning of an array
<?php array_unshift(array &$array, mixed ...$values): int
<?php         if ($where instanceof CompositeExpression && $where->getType() === CompositeExpression::TYPE_AND) {

            $where = $where->with(...$args);

        } else {

            array_unshift($args, $where);

            $where = CompositeExpression::and(...$args);

        }
<?php         if ($where instanceof CompositeExpression && $where->getType() === CompositeExpression::TYPE_OR) {

            $where = $where->with(...$args);

        } else {

            array_unshift($args, $where);

            $where = CompositeExpression::or(...$args);

        }
<?php         if ($having instanceof CompositeExpression && $having->getType() === CompositeExpression::TYPE_AND) {

            $having = $having->with(...$args);

        } else {

            array_unshift($args, $having);

            $having = CompositeExpression::and(...$args);

        }
<?php         if ($having instanceof CompositeExpression && $having->getType() === CompositeExpression::TYPE_OR) {

            $having = $having->with(...$args);

        } else {

            array_unshift($args, $having);

            $having = CompositeExpression::or(...$args);

        }
<?php         $params = $this->connection->getParams();



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

            array_unshift($expected, $params['user']);

        }



        self::assertEquals($expected, $this->schemaManager->getSchemaSearchPaths());