array_change_key_case

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Changes the case of all keys in an array
<?php array_change_key_case(array $array, int $case = CASE_LOWER): array
<?php             return (int) $results[0]->aggregate;

        }



        return (int) array_change_key_case((array) $results[0])['aggregate'];

    }
<?php                         ->get($columns);



        if (! $results->isEmpty()) {

            return array_change_key_case((array) $results[0])['aggregate'];

        }

    }
<?php         }



        $vars = [];

        foreach (array_change_key_case($this->_defaultSessionVars, CASE_UPPER) as $option => $value) {

            if ($option === 'CURRENT_SCHEMA') {

                $vars[] = $option . ' = ' . $value;

            } else {
<?php             $row      = $this->conn->fetchAssociative($sql, [$sequence]);



            if ($row !== false) {

                $row = array_change_key_case($row, CASE_LOWER);



                $value = $row['sequence_value'];

                $value++;
<?php         if ($case !== null) {

            $functions[] = static function (array $row) use ($case): array {

                return array_change_key_case($row, $case);

            };

        }
<?php     protected function _getPortableTableColumnDefinition($tableColumn)

    {

        $tableColumn = array_change_key_case($tableColumn, CASE_LOWER);



        $length    = null;

        $fixed     = null;
<?php     {

        $tableNames = [];

        foreach ($tables as $tableRow) {

            $tableRow     = array_change_key_case($tableRow, CASE_LOWER);

            $tableNames[] = $tableRow['name'];

        }
<?php     protected function _getPortableTableIndexesList($tableIndexes, $tableName = null)

    {

        foreach ($tableIndexes as &$tableIndexRow) {

            $tableIndexRow            = array_change_key_case($tableIndexRow, CASE_LOWER);

            $tableIndexRow['primary'] = (bool) $tableIndexRow['primary'];

        }
<?php         $foreignKeys = [];



        foreach ($tableForeignKeys as $tableForeignKey) {

            $tableForeignKey = array_change_key_case($tableForeignKey, CASE_LOWER);



            if (! isset($foreignKeys[$tableForeignKey['index_name']])) {

                $foreignKeys[$tableForeignKey['index_name']] = [
<?php     protected function _getPortableViewDefinition($view)

    {

        $view = array_change_key_case($view, CASE_LOWER);



        $sql = '';

        $pos = strpos($view['text'], ' AS ');
<?php     protected function _getPortableTableIndexesList($tableIndexes, $tableName = null)

    {

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

            $v = array_change_key_case($v, CASE_LOWER);

            if ($v['key_name'] === 'PRIMARY') {

                $v['primary'] = true;

            } else {
<?php     protected function _getPortableTableColumnDefinition($tableColumn)

    {

        $tableColumn = array_change_key_case($tableColumn, CASE_LOWER);



        $dbType = strtolower($tableColumn['type']);

        $dbType = strtok($dbType, '(), ');
<?php     {

        $list = [];

        foreach ($tableForeignKeys as $value) {

            $value = array_change_key_case($value, CASE_LOWER);

            if (! isset($list[$value['constraint_name']])) {

                if (! isset($value['delete_rule']) || $value['delete_rule'] === 'RESTRICT') {

                    $value['delete_rule'] = null;
<?php     protected function _getPortableViewDefinition($view)

    {

        $view = array_change_key_case($view, CASE_LOWER);



        return new View($this->getQuotedIdentifierName($view['view_name']), $view['text']);

    }
<?php     protected function _getPortableUserDefinition($user)

    {

        $user = array_change_key_case($user, CASE_LOWER);



        return [

            'user' => $user['username'],