X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FSmarty%2Fplugins%2Fmodifier.substring.php;h=c2e7cb755629b44cd50b1e90497ec29f3c2565db;hb=ef10e0b52408ba266239a859756d757a10348228;hp=75747402db3f910b7a62b363b309e8987bf6e832;hpb=6a4880350680e1e4d20e5c8a622a791f926ca750;p=civicrm-core.git diff --git a/CRM/Core/Smarty/plugins/modifier.substring.php b/CRM/Core/Smarty/plugins/modifier.substring.php index 75747402db..c2e7cb7556 100644 --- a/CRM/Core/Smarty/plugins/modifier.substring.php +++ b/CRM/Core/Smarty/plugins/modifier.substring.php @@ -1,9 +1,9 @@ - * Purpose: "substring" allows you to retrieve a small part (substring) of a string. - * Notes: The substring is specified by giving the start position and the length. + * Purpose: "substring" allows you to retrieve a small part (substring) of a string. + * Notes: The substring is specified by giving the start position and the length. * Unlike the original function substr() in PHP the position of the characters * in the string starts at 1 (not at 0 as usual in php). * Example smarty code: - * {$my_string|substring:2:4} + * {$my_string|substring:2:4} * returns substring from character 2 until character 6 * @link based on substr(): http://www.zend.com/manual/function.substr.php * @param string @@ -58,4 +58,3 @@ function smarty_modifier_substring($string, $position, $length) { return substr($string, $position, $length); } -