Last active
January 19, 2017 14:50
-
-
Save zhabinka/d5d7f036a9763fb84082d49996237998 to your computer and use it in GitHub Desktop.
Обрезать текст до запятой. https://modx.pro/help/10970/#comment-74490
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Code snippet | |
Вывод [[*tv:modifikator]] | |
*/ | |
$text = $input; | |
$arr = explode(',',$text); | |
return $arr[1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment