Skip to content

Commit 320a501

Browse files
Jon Greenjaviereguiluz
Jon Green
authored andcommitted
Update http_foundation.rst
1 parent 29e1c0e commit 320a501

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/http_foundation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ doesn't support returning arrays, so you need to use the following code::
172172
$request->query->all('foo');
173173
// returns ['bar' => 'baz']
174174

175+
// if the requested parameter does not exist, an empty array is returned:
176+
$request->query->all('qux');
177+
// returns []
178+
175179
$request->query->get('foo[bar]');
176180
// returns null
177181

0 commit comments

Comments
 (0)