8000 minor #10247 [HttpFoundation] Small fixes on some examples (nicoweb) · symfony/symfony-docs@0e9a651 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e9a651

Browse files
committed
minor #10247 [HttpFoundation] Small fixes on some examples (nicoweb)
This PR was merged into the 4.1 branch. Discussion ---------- [HttpFoundation] Small fixes on some examples There were some small mistakes on "Processing HTTP Headers" section. Commits ------- 804bc7c [HttpFoundation] Small fixes on some examples
2 parents 332e6c4 + 804bc7c commit 0e9a651

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/http_foundation.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,23 +262,23 @@ this complexity and defines some methods for the most common tasks::
262262
use Symfony\Component\HttpFoundation\HeaderUtils;
263263

264264
// Splits an HTTP header by one or more separators
265-
HeaderUtils::split('da, en-gb;q=0.8', ',;')
266-
// => array(array('da'), array('en-gb'), array('q', '0.8'))
265+
HeaderUtils::split('da, en-gb;q=0.8', ',;');
266+
// => array(array('da'), array('en-gb','q=0.8'))
267267

268268
// Combines an array of arrays into one associative array
269-
HeaderUtils::combine(array(array('foo', 'abc'), array('bar')))
269+
HeaderUtils::combine(array(array('foo', 'abc'), array('bar')));
270270
// => array('foo' => 'abc', 'bar' => true)
271271

272272
// Joins an associative array into a string for use in an HTTP header
273-
HeaderUtils::toString(array('foo' => 'abc', 'bar' => true, 'baz' => 'a b c'), ',')
273+
HeaderUtils::toString(array('foo' => 'abc', 'bar' => true, 'baz' => 'a b c'), ',');
274274
// => 'foo=abc, bar, baz="a b c"'
275275

276276
// Encodes a string as a quoted string, if necessary
277-
HeaderUtils::quote('foo "bar"')
278-
// => 'foo \"bar\"'
277+
HeaderUtils::quote 63AA ('foo "bar"');
278+
// => '"foo \"bar\""'
279279

280280
// Decodes a quoted string
281-
HeaderUtils::unquote('foo \"bar\"')
281+
HeaderUtils::unquote('"foo \"bar\""');
282282
// => 'foo "bar"'
283283

284284
Accessing ``Accept-*`` Headers Data

0 commit comments

Comments
 (0)
0