Skip to content

Commit 892cbac

Browse files
committed
docs: fix incorrect default value and sample code for reduce_multiples()
1 parent 0c4c656 commit 892cbac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

user_guide_src/source/helpers/text_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ The following functions are available:
127127
and handle string inputs. This however makes it just an
128128
alias for ``stripslashes()``.
129129

130-
.. php:function:: reduce_multiples($str[, $character = ''[, $trim = false]])
130+
.. php:function:: reduce_multiples($str[, $character = ','[, $trim = false]])
131131
132132
:param string $str: Text to search in
133133
:param string $character: Character to reduce
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22

33
$string = ',Fred, Bill,, Joe, Jimmy,';
4-
$string = reduce_multiples($string, ', ', true); // results in "Fred, Bill, Joe, Jimmy"
4+
$string = reduce_multiples($string, ',', true); // results in "Fred, Bill, Joe, Jimmy"

0 commit comments

Comments
 (0)