Skip to content

Commit d678685

Browse files
committed
Added a new function that allows to capitalize the first letter of all words
1 parent 3389cb5 commit d678685

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function getFunctions(): array
2424
ExpressionFunction::fromPhp('strip_tags', 'stripHtml'),
2525
ExpressionFunction::fromPhp('json_decode', 'decode'),
2626
ExpressionFunction::fromPhp('preg_replace', 'replaceByExpression'),
27+
ExpressionFunction::fromPhp('ucwords', 'capitalizeWords'),
2728
new FileName('fileName'),
2829
new DateTime('dateTime'),
2930
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)