File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -317,8 +317,8 @@ Methods to Search and Replace
317317 return '['.$match[0].']';
318318 }); // result = '[1][2][3]'
319319
320- Methods to Join, Split and Truncate
321- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
320+ Methods to Join, Split, Truncate and Reverse
321+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
322322
323323::
324324
@@ -358,19 +358,14 @@ Methods to Join, Split and Truncate
358358 // breaks the string into pieces of the length given as argument
359359 u('0123456789')->chunk(3); // ['012', '345', '678', '9']
360360
361- .. versionadded :: 5.1
362-
363- The reverse() method was introduced in Symfony 5.1.
364-
365- Method to Reverse
366- ~~~~~~~~~~~~~~~~~
367-
368- ::
369-
370- // reverses the order of characters in a string
361+ // reverses the order of the string contents
371362 u('foo bar')->reverse(); // 'rab oof'
372363 u('さよなら')->reverse(); // 'らなよさ'
373364
365+ .. versionadded :: 5.1
366+
367+ The ``reverse() `` method was introduced in Symfony 5.1.
368+
374369Methods Added by ByteString
375370~~~~~~~~~~~~~~~~~~~~~~~~~~~
376371
You can’t perform that action at this time.
0 commit comments