diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index c370c3e0ae8..2604f3a4a72 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -164,8 +164,8 @@ When PHP imports the request query, it handles request parameters like $request->query->get('foo'); // returns array('bar' => 'bar') - $request->query->get('foo[bar]'); - // returns null + $request->query->get('foo')['bar']; + // returns 'bar' .. _component-foundation-attributes: