Skip to content

Commit fbfc8f2

Browse files
author
Jon Green
committed
Update http_foundation.rst
1 parent 4f6e57d commit fbfc8f2

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)