-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-add support for implode, substr and json_encode #939
Comments
There is a problem with implode. Using As a modifier, this seems silly. It would be more intuitive to flip the arguments, in the way Twig does it: |
It seems Smarty v5 also supports strlen, time, count, is_array and in_array as functions. (They are implemented as FunctionHandlers.) This is undocumented. |
Smarty also supports explode. It's undocumented, but it has been in the unit tests. However, the parameter order is weird and we cannot auto-fix it, since both parameters are strings. I propose to deprecate explode and promote split with the parameters reversed. |
v4 deprecates and v5 drops support for many native php functions.
implode, substr and json_encode are commonly used and it might be useful to support them.
The text was updated successfully, but these errors were encountered: