From 2e487dbff639fb0999fa028d5460239882459b3a Mon Sep 17 00:00:00 2001 From: sebprt Date: Mon, 20 Feb 2023 14:11:25 +0100 Subject: [PATCH] Added splitIntoArray function --- src/StringExpressionLanguageProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/StringExpressionLanguageProvider.php b/src/StringExpressionLanguageProvider.php index 47bf3f6..a1da64b 100644 --- a/src/StringExpressionLanguageProvider.php +++ b/src/StringExpressionLanguageProvider.php @@ -26,6 +26,7 @@ public function getFunctions(): array ExpressionFunction::fromPhp('preg_replace', 'replaceByExpression'), ExpressionFunction::fromPhp('ucwords', 'capitalizeWords'), ExpressionFunction::fromPhp('rtrim', 'removeWhitespaces'), + ExpressionFunction::fromPhp('explode', 'splitIntoArray'), new FileName('fileName'), new DateTime('dateTime'), new FormatDate('formatDate'),