Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nowackipawel opened this issue Jul 24, 2017 · 1 comment
Closed

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

nowackipawel opened this issue Jul 24, 2017 · 1 comment

Comments

@nowackipawel
Copy link
Contributor

nowackipawel commented Jul 24, 2017

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; // } // } // }

@lonnieezell
Copy link
Member

Simply because no one has gone back to make sure it works :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants