diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index 8b9073a1749..6e66bbd7242 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -151,11 +151,7 @@ exist:: When PHP imports the request query, it handles request parameters like ``foo[bar]=bar`` in a special way as it creates an array. So you can get the -``foo`` parameter and you will get back an array with a ``bar`` element. But -sometimes, you might want to get the value for the "original" parameter name: -``foo[bar]``. This is possible with all the ``ParameterBag`` getters like -:method:`Symfony\\Component\\HttpFoundation\\Request::get` via the third -argument:: +``foo`` parameter and you will get back an array with a ``bar`` element:: // the query string is '?foo[bar]=bar' @@ -163,10 +159,7 @@ argument:: // returns array('bar' => 'bar') $request->query->get('foo[bar]'); - // returns null - - $request->query->get('foo[bar]', null, true); - // returns 'bar' + // returns null .. _component-foundation-attributes: