Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f60eb6e

Browse filesBrowse files
committed
[#6278] small tweak
1 parent 530e8c4 commit f60eb6e
Copy full SHA for f60eb6e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎components/http_foundation/introduction.rst

Copy file name to clipboardExpand all lines: components/http_foundation/introduction.rst
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ has some methods to filter the input values:
134134
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::filter`
135135
Filters the parameter by using the PHP :phpfunction:`filter_var` function.
136136

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
137+
All getters take 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
139139
exist::
140140

141141
// the query string is '?foo=bar'
@@ -148,7 +148,6 @@ exist::
148148

149149
$request->query->get('bar', 'bar');
150150
// returns 'bar'
151-
152151

153152
When PHP imports the request query, it handles request parameters like
154153
``foo[bar]=bar`` in a special way as it creates an array. So you can get the

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.