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
317
317
return '['.$match[0].']';
318
318
}); // result = '[1][2][3]'
319
319
320
- Methods to Join, Split and Truncate
321
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
320
+ Methods to Join, Split, Truncate and Reverse
321
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
322
322
323
323
::
324
324
@@ -358,19 +358,14 @@ Methods to Join, Split and Truncate
358
358
// breaks the string into pieces of the length given as argument
359
359
u('0123456789')->chunk(3); // ['012', '345', '678', '9']
360
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
361
+ // reverses the order of the string contents
371
362
u('foo bar')->reverse(); // 'rab oof'
372
363
u('さよなら')->reverse(); // 'らなよさ'
373
364
365
+ .. versionadded :: 5.1
366
+
367
+ The ``reverse() `` method was introduced in Symfony 5.1.
368
+
374
369
Methods Added by ByteString
375
370
~~~~~~~~~~~~~~~~~~~~~~~~~~~
376
371
You can’t perform that action at this time.
0 commit comments