File tree 1 file changed +2
-9
lines changed
components/http_foundation
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -151,22 +151,15 @@ exist::
151
151
152
152
When PHP imports the request query, it handles request parameters like
153
153
``foo[bar]=bar `` in a special way as it creates an array. So you can get the
154
- ``foo `` parameter and you will get back an array with a ``bar `` element. But
155
- sometimes, you might want to get the value for the "original" parameter name:
156
- ``foo[bar] ``. This is possible with all the ``ParameterBag `` getters like
157
- :method: `Symfony\\ Component\\ HttpFoundation\\ Request::get ` via the third
158
- argument::
154
+ ``foo `` parameter and you will get back an array with a ``bar `` element::
159
155
160
156
// the query string is '?foo[bar]=bar'
161
157
162
158
$request->query->get('foo');
163
159
// returns array('bar' => 'bar')
164
160
165
161
$request->query->get('foo[bar]');
166
- // returns null
167
-
168
- $request->query->get('foo[bar]', null, true);
169
- // returns 'bar'
162
+ // returns null
170
163
171
164
.. _component-foundation-attributes :
172
165
You can’t perform that action at this time.
0 commit comments