Skip to content

Commit 17cbf7f

Browse files
committed
Minor tweaks
1 parent 9ae0174 commit 17cbf7f

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

components/string.rst

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff 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+
374369
Methods Added by ByteString
375370
~~~~~~~~~~~~~~~~~~~~~~~~~~~
376371

0 commit comments

Comments
 (0)