8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d838ba6 commit 9a4d9cdCopy full SHA for 9a4d9cd
components/string.rst
@@ -358,6 +358,19 @@ Methods to Join, Split and Truncate
358
// breaks the string into pieces of the length given as argument
359
u('0123456789')->chunk(3); // ['012', '345', '678', '9']
360
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
371
+ u('foo bar')->reverse(); // 'rab oof'
372
+ u('さよなら')->reverse(); // 'らなよさ'
373
374
Methods Added by ByteString
375
~~~~~~~~~~~~~~~~~~~~~~~~~~~
376
0 commit comments