Skip to content

Q: Support of array notations is not longer supported? #627

Description

@nowackipawel

Is there any reason why array notation is not longer supported?
I found code which supported it is commented in \CodeIgniter\HTTP\Request:

// // // Does the index contain array notation? // if (($count = preg_match_all('/(?:^[^\[]+)|\[[^]]*\]/', $index, $matches)) > 1) // Does the index contain array notation // { // $value = $array; // for ($i = 0; $i < $count; $i++) // { // $key = trim($matches[0][$i], '[]'); // if ($key === '') // Empty notation will return the value as array // { // break; // } // // if (isset($value[$key])) // { // $value = $value[$key]; // } // else // { // return NULL; // } // } // }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions