File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
components/http_foundation Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ has some methods to filter the input values:
134
134
:method: `Symfony\\ Component\\ HttpFoundation\\ ParameterBag::filter `
135
135
Filters the parameter by using the PHP :phpfunction: `filter_var ` function.
136
136
137
- All getters takes up to three arguments: the first one is the parameter name
138
- and the second one is the default value to return if the parameter does not
137
+ All getters take up to three arguments: the first one is the parameter name and
138
+ the second one is the default value to return if the parameter does not
139
139
exist::
140
140
141
141
// the query string is '?foo=bar'
@@ -148,6 +148,7 @@ exist::
148
148
149
149
$request->query->get('bar', 'bar');
150
150
// returns 'bar'
151
+
151
152
152
153
When PHP imports the request query, it handles request parameters like
153
154
``foo[bar]=bar `` in a special way as it creates an array. So you can get the
You can’t perform that action at this time.
0 commit comments